change_notifier library Null safety

Classes

AsyncChangeNotifier<C extends ChangeRecord>
Supplies changes and various hooks to implement Observable.
ChangeNotifier
A class that can be extended or mixed in that provides a change notification API using VoidCallback for notifications.
ChangeRecord
Result of a change to an observed object.
ChangeRecords<RecordType extends ChangeRecord>
Represents a list of change records.
Differ<E>
Generic comparisons between two comparable objects.
EqualityDiffer<E>
Uses Equality to determine a simple ChangeRecord.ANY response.
ListChangeRecord<E>
A ChangeRecord that denotes adding or removing nodes at index.
ListDiffer<E>
Determines differences between two lists, returning ListChangeRecords.
Listenable
An object that maintains a list of listeners.
MapChangeRecord<K, V>
A ChangeRecord that denotes adding, removing, or updating a map.
MapDiffer<K, V>
Determines differences between two maps, returning MapChangeRecords.
Observable<C extends ChangeRecord>
Represents an object with observable state or properties.
ObservableList<E>
Represents an observable list of model values. If any items are added, removed, or replaced, then observers that are listening to changes will be notified.
ObservableMap<K, V>
Represents an observable map of model values. If any items are added, removed, or replaced, then observers that are listening to changes will be notified.
PropertyChangeRecord<T, K>
A change record to a field of a generic observable object.
ValueListenable<T>
An interface for subclasses of Listenable that expose a value.
ValueNotifier<T>
A ChangeNotifier that holds a single value.

Mixins

PropertyChangeNotifier<K>
Supplies property changes and various hooks to implement Observable.

Functions

toObservable(dynamic value, {bool deep = true}) → dynamic
Converts the Iterable or Map to an ObservableList or ObservableMap, respectively. This is a convenience function to make it easier to convert literals into the corresponding observable collection type.
toObservableList<T>(Iterable<T> value, {bool deep = true}) ObservableList<T>
Converts the Iterable to an ObservableList.
toObservableMap<K, V>(Map<K, V> value, {bool deep = true}) ObservableMap<K, V>
Converts the Map to an ObservableMap.

Typedefs

VoidCallback = void Function()