SetInformer<T> class
Altered version of Flutter's ValueNotifier with extended list capabilities.
- Inheritance
-
- Object
- ChangeNotifier
- InformNotifier
- SetInformer
- Implemented types
-
- ValueListenable<
Set< T> >
- ValueListenable<
Constructors
-
SetInformer(Set<
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
- 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
→ Set<
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.
-
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
containsvalue
. -
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(
Set< T> value, {bool doNotifyListeners = true}) → void - Setter of the current list of the informer.
-
updateCurrent(
Set< T> current(Set<T> current), {bool doNotifyListeners = true}) → void - Provides current list and updates the list of the informer with received list.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited