XRect extension
- on
Properties
Methods
-
constrain(
Rect withinBounds) → Rect? -
Available on Rect, provided by the XRect extension
Returns a new Rect if the current Rect is outside thewithinBounds
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