scaleFromOrigin method

Rect scaleFromOrigin(
  1. double scale,
  2. Offset origin
)

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);
}