Region class

Constructors

Region({required int x1, required int x2, required int y1, required int y2})
const
Region.fromLTRB(int x1, int y1, int x2, int y2)
Create region from left, top, right and bottom
factory

Properties

bottomRight Offset
Return the bottom right of this region
no setter
hashCode int
The hash code for this object.
no setterinherited
height int
Get the height of this region
no setter
isEmpty bool
Check whether the area of this region is less or equal than 1
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
topLeft Offset
Return the top left of this region
no setter
width int
Get the width of this region
no setter
x1 int
Left
final
x2 int
Right
final
y1 int
Top
final
y2 int
Bottom
final

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.
inherited