StackItem<T extends StackItemContent> constructor

StackItem<T extends StackItemContent>({
  1. String? id,
  2. required Size size,
  3. Offset? offset,
  4. double? angle = 0,
  5. StackItemStatus? status = StackItemStatus.selected,
  6. bool? lockZOrder = false,
  7. T? content,
})

Implementation

StackItem({
  String? id,
  required this.size,
  Offset? offset,
  double? angle = 0,
  StackItemStatus? status = StackItemStatus.selected,
  bool? lockZOrder = false,
  this.content,
})  : id = id ?? _genId(),
      offset = offset ?? Offset.zero,
      angle = angle ?? 0,
      lockZOrder = lockZOrder ?? false,
      status = status ?? StackItemStatus.selected;