utils/rect_ops library

Extensions

RectOps on Rect

Functions

getBounds(Iterable<Offset> points) Rect
Calculates the bounding box of a collection of Offsets.
getPanCorrection(Rect rect, Rect safeArea) Offset
Calculates the offset needed to move rect inside safeArea.