ListModel<E>.ofListKey constructor
ListModel<E>.ofListKey ({
- RemovedItemBuilder<
E> ? removedItemBuilder, - MModel? container,
- required GlobalKey<
AnimatedListState> listKey, - String? attribute,
- AnimationType animationType = AnimationType.slide,
- Iterable<
E> ? initialItems,
Implementation
ListModel.ofListKey({
this.removedItemBuilder,
this.container,
required GlobalKey<AnimatedListState> this.listKey,
this.attribute,
this.animationType = AnimationType.slide,
Iterable<E>? initialItems,
}) : _items = [...?initialItems] {
this.count.update(_items.length);
}