MapInformer<E, T> class

Altered version of Flutter's ValueNotifier with extended map capabilities.

Inheritance
Implemented types

Constructors

MapInformer(Map<E, T> _value, {bool forceUpdate = false})

Properties

hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value Map<E, T>
Getter of the current map of the informer.
no setteroverride

Methods

add(E key, T value, {bool doNotifyListeners = true}) → void
Assigns value to key.
addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
clear({bool doNotifyListeners = true}) → void
Clears _value of any values.
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
putIfAbsent(E key, T value, {bool doNotifyListeners = true}) → T
Performs a Map.putIfAbsent and returns its return value.
rebuild() → void
Used to force notify the listeners of this super ChangeNotifier.
inherited
remove(E key, {bool doNotifyListeners = true}) → T?
Removes key from _value.
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
toString() String
A string representation of this object.
override
update(Map<E, T> value, {bool doNotifyListeners = true}) → void
Setter of the current map of the informer.
updateCurrent(Map<E, T> current(Map<E, T> current), {bool doNotifyListeners = true}) → void
Provides current map and updates the map of the informer with received map.
updateKey(E key, T update(T value), {T ifAbsent()?, bool doNotifyListeners = true}) → void
Updates the value for the provided key nu calling the Map.update method.

Operators

operator ==(Object other) bool
The equality operator.
inherited