bounds property
Returns a rectangle that defines the area of this display object in this display object's local coordinates.
Implementation
@override
Rectangle<num> get bounds => bitmapData == null
? Rectangle<num>(0.0, 0.0, 0.0, 0.0)
: Rectangle<num>(0.0, 0.0, bitmapData!.width, bitmapData!.height);