FoldingFeature class
从原生传递过来的参数,折叠屏状态 JSON传递 {"state":1,"orientation":0,"bounds":{"left":0,"right":1840,"top":1104,"bottom":1104}} state(折叠状态):0:未知,1:展开,2:折叠,3:半折叠 orientation(折痕方向):0:水平,1:垂直 bounds(折叠区域):包含四个属性,left、right、top、bottom,分别表示折叠区域的左、右、上、下边界,单位为像素.
Constructors
- FoldingFeature({FoldStatus state = FoldStatus.unknown, Axis orientation = Axis.horizontal, Rect bounds = Rect.zero})
-
FoldingFeature.fromJson(Map<
String, dynamic> json) -
factory
Properties
- bounds → Rect
-
折叠区域
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- orientation → Axis
-
折痕方向
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → FoldStatus
-
折叠状态
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