XRect extension
- on
Methods
-
constrain(
Rect withinBounds) → Rect? -
Returns a new Rect if the current Rect is outside the
withinBounds
otherwise returns null. If the Rect is outside thewithinBounds
it will be adjusted to fit within thewithinBounds
maintaining the aspect ratio. -
deflatePercent(
double percent) → Rect -
fullyContains(
Rect other) → bool -
inflatePercent(
double percent) → Rect -
remap(
Offset remapper(Offset point)?) → Rect