Rectangle2D class
Represents a 2D rectangle defined by the origin and size.
Constructors
- Rectangle2D(Point2D origin, Size2D size)
- Creates a new instance.
Properties
- hashCode → int
-
The hash code for this object.
no setter
- origin ↔ Point2D
-
The origin specifies the top-left corner of the rectangle.
When this point is used to indicate the coordinates on a view,
then (0,0) will mark the top-left corner of the view. The size determines
the width and height of the rectangle. The width expands towards the right of the view.
The height expands towards the bottom of the view.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size ↔ Size2D
-
The size specifies the width and height of the rectangle.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool - The equality operator.