remap method

Rect remap(
  1. Offset remapper(
    1. Offset point
    )?
)

Implementation

Rect remap(Offset Function(Offset point)? remapper) => [
      remapper?.call(topLeft) ?? topLeft,
      remapper?.call(topRight) ?? topRight,
      remapper?.call(bottomRight) ?? bottomRight,
      remapper?.call(bottomLeft) ?? bottomLeft,
    ].toRect();