toRect method
Implementation
Rect toRect() => Rect.fromPoints(
topLeft.toOffset(),
topLeft.toOffset().translate(
size.width.toDouble(),
size.height.toDouble(),
));
Rect toRect() => Rect.fromPoints(
topLeft.toOffset(),
topLeft.toOffset().translate(
size.width.toDouble(),
size.height.toDouble(),
));