scaleFromOrigin method
Implementation
Rect scaleFromOrigin(double scale, Offset origin) {
final double width = this.width * scale;
final double height = this.height * scale;
final Offset offset = origin - (origin - this.topLeft) * scale;
return offset & Size(width, height);
}