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 thewithinBoundsotherwise returns null. If the Rect is outside thewithinBoundsit will be adjusted to fit within thewithinBoundsmaintaining the aspect ratio. -
deflatePercent(
double percent) → Rect -
fullyContains(
Rect other) → bool -
inflatePercent(
double percent) → Rect -
remap(
Offset remapper(Offset point)?) → Rect