StackItem<T extends StackItemContent> class
abstract
- 布局数据核心类
- 自定义需要继承此类
- Core class for layout data
- Custom needs to inherit this class
- Implementers
- Annotations
Constructors
- StackItem({String? id, required Size size, Offset? offset, double? angle = 0, StackItemStatus? status = StackItemStatus.selected, bool? lockZOrder = false, T? content})
- StackItem.empty({required Size size, required Offset offset, required double angle, required StackItemStatus status, required T? content, required bool lockZOrder})
-
const
Properties
- angle → double
-
Angle
final
- content → T?
-
Content
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String
-
id
final
- lockZOrder → bool
-
final
- offset → Offset
-
Offset
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → Size
-
Size
final
- status → StackItemStatus
-
Status
final
Methods
-
copyWith(
{Size? size, Offset? offset, double? angle, StackItemStatus? status, bool? lockZOrder, T? content}) → StackItem< T> - Update content and return new instance
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - to json
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override