Rect class Null safety

长方形区域。

Annotations
  • @JsonSerializable(explicitToJson: true)

Constructors

Rect({int? left, int? top, int? right, int? bottom})
Constructs a Rect
Rect.fromJson(Map<String, dynamic> json)
factory

Properties

bottom int?
长方形区域的底边所对应的纵坐标。
@JsonKey(includeIfNull: false), read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
left int?
长方形区域的左边所对应的横坐标。
@JsonKey(includeIfNull: false), read / write
长方形区域的右边所对应的横坐标。
@JsonKey(includeIfNull: false), read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
top int?
长方形区域的上边所对应的纵坐标。
@JsonKey(includeIfNull: false), read / write

Methods

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

Operators

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