scale method
- num factor
override
Scales the shape uniformly by the given factor originating from centroid.
Implementation
@override
Rectangle scale(num factor) => Rectangle(width: width * factor.abs(), height: height * factor.abs(), center: _center);