XRect extension

on

Properties

maxSide double
no setter
minSide double
no setter

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 the withinBounds it will be adjusted to fit within the withinBounds maintaining the aspect ratio.
deflatePercent(double percent) Rect
fullyContains(Rect other) bool
inflatePercent(double percent) Rect
remap(Offset remapper(Offset point)?) Rect