ImageWrap<T extends Object>.constant constructor
ImageWrap<T extends Object>.constant({ - List<ImageData<T>> images = const [],
- int columnCount = 4,
- Key? key,
- bool? hasFav,
- FutureOr<void> onDelete(
- T
) = _default,
- FutureOr<void> onStar(
- T
) = _default,
- FutureOr<void> onShare(
- T
) = _default,
- FutureOr<void> onRotate(
- T,
- int deltaQuarterTurns
) = _defaultRotate,
- bool selectionMode = false,
- Set<T>? selectedIds,
- ValueChanged<T>? onToggleSelection,
- void onSetSelection(
- T id,
- bool selected
)?,
- ValueChanged<Set<T>>? onVisibleIdsChanged,
})
Implementation
ImageWrap.constant({
List<ImageData<T>> images = const [],
this.columnCount = 4,
Key? key,
this.hasFav,
this.onDelete = _default,
this.onStar = _default,
this.onShare = _default,
this.onRotate = _defaultRotate,
this.selectionMode = false,
Set<T>? selectedIds,
this.onToggleSelection,
this.onSetSelection,
this.onVisibleIdsChanged,
}) : this.images = images.map((e) => Stream.value(e)).toList(),
this.selectedIds = selectedIds ?? <T>{},
super(key: key);