ListModel<E>.ofObservableMap constructor
ListModel<E>.ofObservableMap ({
- required ObservableMap<
E, dynamic> map, - MModel? container,
- GlobalKey<
AnimatedListState> ? listKey, - AnimationType animationType = AnimationType.slide,
- String? attribute,
Creates a list model that represents keys in a map
Implementation
ListModel.ofObservableMap({
required ObservableMap<E, dynamic> map,
this.container,
this.listKey,
this.animationType = AnimationType.slide,
this.attribute,
}) : _items = map.keys.toList() {
// Sync changes with the observable map keys
_dispose = map.observe((change) {
updateAll(map.keys);
});
}