MaxLengthListInformer<T> class

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

Inheritance
Implemented types

Constructors

MaxLengthListInformer(List<T> _value, {bool forceUpdate = false, int maxLength = 50})

Properties

hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
isEmpty bool
Whether the _value is empty.
no setter
isNotEmpty bool
Whether the _value is not empty.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value List<T>
Getter of the current list of the informer.
no setteroverride

Methods

add(T value, {bool doNotifyListeners = true}) → void
Adds a value to the list.
addAll(Iterable<T> values, {bool doNotifyListeners = true}) → void
Adds all values to the list.
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.
contains(T value) bool
Whether the _value contains value.
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
rebuild() → void
Used to force notify the listeners of this super ChangeNotifier.
inherited
remove(T value, {bool doNotifyListeners = true}) bool
Removes a value from the list.
removeLast({bool doNotifyListeners = true}) → T
Removes the last value from the list.
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(List<T> value, {bool doNotifyListeners = true}) → void
Setter of the current list of the informer.
updateCurrent(List<T> current(List<T> current), {bool doNotifyListeners = true}) → void
Provides current list and updates the list of the informer with received list.
updateFirstWhereOrNull(bool test(T value), T update(T value), {bool doNotifyListeners = true}) → T?
Updates the first value that meets the criteria with given update.

Operators

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