XRect extension

on

Properties

maxSide double

Available on Rect, provided by the XRect extension

no setter
minSide double

Available on Rect, provided by the XRect extension

no setter

Methods

constrain(Rect withinBounds) Rect?

Available on Rect, provided by the XRect extension

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

Available on Rect, provided by the XRect extension

fullyContains(Rect other) bool

Available on Rect, provided by the XRect extension

inflatePercent(double percent) Rect

Available on Rect, provided by the XRect extension

remap(Offset remapper(Offset point)?) Rect

Available on Rect, provided by the XRect extension