Returns Rect if Path is equivalent to Rect when filled. rect may be smaller than the Path bounds. Path bounds may include PathVerb#MOVE points that do not alter the area drawn by the returned rect. @return bounds if Path contains Rect, null otherwise @see <a href="https://fiddle.s
()
| 845 | * @see <a href="https://fiddle.skia.org/c/@Path_isRect">https://fiddle.skia.org/c/@Path_isRect</a> |
| 846 | */ |
| 847 | @Nullable @Contract(pure = true) |
| 848 | public Rect isRect() { |
| 849 | try { |
| 850 | Stats.onNativeCall(); |
| 851 | return _nIsRect(_ptr); |
| 852 | } finally { |
| 853 | ReferenceUtil.reachabilityFence(this); |
| 854 | } |
| 855 | } |
| 856 | |
| 857 | /** |
| 858 | * <p>Return a copy of {@link Path} with verb array, {@link Point} array, |