getBounds method
Axis-aligned bounding rectangle that encloses the entire path.
This is computed from path.getBounds() and may include empty
areas if the path has holes or non-visible segments.
Use getVisibleBounds for a tighter fit around visible content.
Implementation
Rect getBounds() => path.getBounds();