Rect class

用于表述一些视图的坐标

Constructors

Rect({required double originX, required double originY, required double sizeWidth, required double sizeHeight})

Properties

hashCode int
The hash code for this object.
no setterinherited
originX double
视图左上角的 x 坐标
getter/setter pair
originY double
视图左上角的 y 坐标
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sizeHeight double
视图的高度
getter/setter pair
sizeWidth double
视图的宽度
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
将当前对象转换为 JSON 格式。
toString() String
A string representation of this object.
inherited

Operators

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