transformRectToGlobal method
Implementation
Rect transformRectToGlobal(
Rect r, {
bool shiftWithBaseOffset = false,
}) {
final topLeft = localToGlobal(
r.topLeft,
shiftWithBaseOffset: shiftWithBaseOffset,
);
return Rect.fromLTWH(topLeft.dx, topLeft.dy, r.width, r.height);
}