Rect class Null safety

Integer coordinates for a rectangle.

Annotations
  • @JsonSerializable(explicitToJson: true)

Constructors

Rect({int? left, int? top, int? right, int? bottom})
Constructs a Rect

Properties

bottom int?
The Y coordinate of the bottom side of the rectangle.
@JsonKey(includeIfNull: false), read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
left int?
The X coordinate of the left side of the rectangle.
@JsonKey(includeIfNull: false), read / write
The X coordinate of the right side of the rectangle.
@JsonKey(includeIfNull: false), read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
top int?
The Y coordinate of the top side of the rectangle.
@JsonKey(includeIfNull: false), read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited