MutableRect class
Constructors
- MutableRect.alignedWithinBounds(Rect bounds, {required Size size, required Alignment alignment})
- MutableRect.fromAlignmentContext(Rect alignmentContext, {Alignment originAlignment = Alignment.topLeft, Alignment alignment = Alignment.topLeft, required Size size, Offset offset = Offset.zero})
- MutableRect.fromOrigin(Offset origin, {Alignment innerAlignment = Alignment.topLeft, required Size size, Offset offset = Offset.zero})
Properties
- bottom → double
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
no setter
- left → double
-
no setter
- leftBottom → Offset
-
no setter
- leftTop → Offset
-
no setter
- right → double
-
no setter
- rightBottom → Offset
-
no setter
- rightTop → Offset
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → Size
-
no setter
- top → double
-
no setter
- width → double
-
no setter
Methods
-
ensureEnclosedBy(
Rect bounds) → void - Moves this rect along axes by a minimum offset sufficient to enclose it inside the given bounds. Resizes it if its size is greater than the bounds' size.
-
ensureHorzEnclosedBy(
Rect bounds) → void -
ensureVertEnclosedBy(
Rect bounds) → void -
isHorzOutside(
Rect bounds) → bool -
isOutside(
Rect bounds) → bool -
isVertOutside(
Rect bounds) → bool -
localXAsAlignment(
double x) → double -
localYAsAlignment(
double y) → double -
move(
{double dx = 0, double dy = 0}) → void -
moveTo(
{double? x, double? y}) → void -
moveToHaveRightAt(
double x) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
shift(
Offset offset) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited