toRect method
Implementation
Rect toRect() => Rect.fromLTWH(x - anchor.relativePosition.dx * width,
y - anchor.relativePosition.dy * height, width, height);
Rect toRect() => Rect.fromLTWH(x - anchor.relativePosition.dx * width,
y - anchor.relativePosition.dy * height, width, height);