UiRect class
A wrapper around Flutter's ui.Rect to provide additional utility methods.
This class simplifies working with rectangles by providing methods for accessing properties like center, width, and height, and for creating offset copies.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
expose(
) → Rect -
Exposes the underlying
ui.Rectobject for direct use. -
getBottom(
) → double - Returns the bottom coordinate of the rectangle.
-
getCenter(
) → Mappoint - Returns the center point of the rectangle.
-
getHeight(
) → double - Returns the height of the rectangle.
-
getLeft(
) → double - Returns the left coordinate of the rectangle.
-
getRight(
) → double - Returns the right coordinate of the rectangle.
-
getTop(
) → double - Returns the top coordinate of the rectangle.
-
getWidth(
) → double - Returns the width of the rectangle.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
offset(
double x, double y) → UiRect -
Creates a new
UiRectthat is offset by the given x and y values. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited