DFRect class Null safety

矩形

Inheritance

Constructors

DFRect(double left, double top, double width, double height)
创建矩形
DFRect.fromCenter({required DFPosition center, required double width, required double height})
创建矩形

Properties

bottom double
下坐标
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
height double
高度
final
left double
左坐标
read / write
右坐标
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
top double
上坐标
read / write
width double
宽度
final

Methods

center() DFPosition
中心坐标
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
overlaps(DFShape other) bool
是否重叠
override
rectToRect(DFRect other) bool
矩形碰撞
toRect() Rect
转换为Rect
toString() String
转换为字符串
override

Operators

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