transformRectToGlobal method

Rect transformRectToGlobal(
  1. Rect r, {
  2. bool shiftWithBaseOffset = false,
})
inherited

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