ListModel<E>.ofListKey constructor

ListModel<E>.ofListKey({
  1. RemovedItemBuilder<E>? removedItemBuilder,
  2. MModel? container,
  3. required GlobalKey<AnimatedListState> listKey,
  4. String? attribute,
  5. AnimationType animationType = AnimationType.slide,
  6. 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);
}