AValue<T extends Object> class abstract

ALiveValue





This works like Notifier but with Value This is meant to be extended by your own implementation where you want the actual Object extending this to be whose state and value is observed.

To observe an external Object as state and value use LiveValue instead.
If you want to notify about data use AValue as the controller and Value as the interface

Inheritance
Implemented types
Implementers
Available extensions

Constructors

AValue()

Properties

current → T

Available on Value<Choice<T>>, provided by the ValueChoiceExtension extension

The actual content for this item.

The current value of this choice item.
no setter
entries Iterable<MapEntry<S, T>>

Available on Value<Map<S, T>>, provided by the MapValue extension

no setter
first → T

Available on Value<Iterable<T>>, provided by the IterableValue extension

no setter
first → T

Available on Value<Choice<T>>, provided by the ValueChoiceExtension extension

Get the first value of this choice item.
no setter
hashCode int
The hash code for this object.
no setterinherited
isEmpty bool

Available on Value<Iterable<T>>, provided by the IterableValue extension

no setter
isEmpty bool

Available on Value<Map<S, T>>, provided by the MapValue extension

no setter
isFalse bool

Available on Value<bool>, provided by the BoolValue extension

no setter
isNotEmpty bool

Available on Value<Iterable<T>>, provided by the IterableValue extension

no setter
isNotEmpty bool

Available on Value<Map<S, T>>, provided by the MapValue extension

no setter
isSelected bool

Available on Value<Choice<T>>, provided by the ValueChoiceExtension extension

Indicates selected or not selected

Check this to know if the current choice is selected
no setter
isTrue bool

Available on Value<bool>, provided by the BoolValue extension

no setter
isUnselected bool

Available on Value<Choice<T>>, provided by the ValueChoiceExtension extension

Indicates selected or not selected

This is the opposite of isSelected
no setter
iterator Iterator<T>

Available on Value<Iterable<T>>, provided by the IterableValue extension

no setter
keys Iterable<S>

Available on Value<Map<S, T>>, provided by the MapValue extension

no setter
last → T

Available on Value<Iterable<T>>, provided by the IterableValue extension

no setter
last → T

Available on Value<Choice<T>>, provided by the ValueChoiceExtension extension

Get the last value of this choice item.
no setter
length int

Available on Value<Iterable<T>>, provided by the IterableValue extension

no setter
length int

Available on Value<Map<S, T>>, provided by the MapValue extension

no setter
length int

Available on Value<Choice<T>>, provided by the ValueChoiceExtension extension

no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
single → T

Available on Value<Iterable<T>>, provided by the IterableValue extension

no setter
value → T
Get the current value
no setteroverride
values Iterable<T>

Available on Value<Map<S, T>>, provided by the MapValue extension

no setter

Methods

any(bool test(T element)) bool

Available on Value<Iterable<T>>, provided by the IterableValue extension

call(T newValue) → void
convenient method for updating the LiveValue
cast<RK, RV>() Map<RK, RV>

Available on Value<Map<S, T>>, provided by the MapValue extension

cast<R>() Iterable<R>

Available on Value<Iterable<T>>, provided by the IterableValue extension

contains(T element) bool

Available on Value<Iterable<T>>, provided by the IterableValue extension

containsKey(S key) bool

Available on Value<Map<S, T>>, provided by the MapValue extension

containsValue(S value) bool

Available on Value<Map<S, T>>, provided by the MapValue extension

dispose() → void
Wipes object data from memory
override
elementAt(int index) → T

Available on Value<Iterable<T>>, provided by the IterableValue extension

every(bool test(T element)) bool

Available on Value<Iterable<T>>, provided by the IterableValue extension

expand<Y>(Iterable<Y> toElements(T element)) Iterable<Y>

Available on Value<Iterable<T>>, provided by the IterableValue extension

firstWhere(bool test(T element), {T orElse()?}) → T

Available on Value<Iterable<T>>, provided by the IterableValue extension

fold<Y>(Y initialValue, Y combine(Y previousValue, T element)) → Y

Available on Value<Iterable<T>>, provided by the IterableValue extension

followedBy(Iterable<T> other) Iterable<T>

Available on Value<Iterable<T>>, provided by the IterableValue extension

forEach(void action(S key, T value)) → void

Available on Value<Map<S, T>>, provided by the MapValue extension

forEach(void action(T element)) → void

Available on Value<Iterable<T>>, provided by the IterableValue extension

get(Map<String, dynamic> properties) → T

Available on Value<Choice<T>>, provided by the ValueChoiceExtension extension

Get the current value of this choice item.

join([String separator = ""]) String

Available on Value<Iterable<T>>, provided by the IterableValue extension

lastWhere(bool test(T element), {T orElse()?}) → T

Available on Value<Iterable<T>>, provided by the IterableValue extension

listen(VoidCallback listener, {bool runOnAttach = false}) → void
Adds a listener that will react to notification of change
inherited
map<K2, V2>(MapEntry<K2, V2> convert(S key, T value)) Map<K2, V2>

Available on Value<Map<S, T>>, provided by the MapValue extension

map<S>(S toElement(T e)) Iterable<S>

Available on Value<Iterable<T>>, provided by the IterableValue extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notify() → void
Notify all listeners
inherited
observe(ValueObserverCallback<T> observer) → void
Adds the observer to a list of callbacks to be notified when change takes place.
override
onValue(ValueConsumerCallback<T> valueConsumerCallback, {bool runOnInitialValue = true}) → void
Listen to Values
override
reduce(T combine(T value, T element)) → T

Available on Value<Iterable<T>>, provided by the IterableValue extension

remove(VoidCallback reactor) → void
removes the give reactor listener
inherited
removeObserver(ValueObserverCallback<T> observer) → void
Removes the observer from a list of callbacks to be notified when change takes place.
override
removeValueConsumerCallback(ValueConsumerCallback<T> consumer) → void
Removes the ValueConsumerCallback from the list of callBacks.
override
singleWhere(bool test(T element), {T orElse()?}) → T

Available on Value<Iterable<T>>, provided by the IterableValue extension

skip(int count) Iterable<T>

Available on Value<Iterable<T>>, provided by the IterableValue extension

skipWhile(bool test(T value)) Iterable<T>

Available on Value<Iterable<T>>, provided by the IterableValue extension

take(int count) Iterable<T>

Available on Value<Iterable<T>>, provided by the IterableValue extension

takeWhile(bool test(T value)) Iterable<T>

Available on Value<Iterable<T>>, provided by the IterableValue extension

toList({required bool growable}) List<T>

Available on Value<Iterable<T>>, provided by the IterableValue extension

toSet() Set<T>

Available on Value<Iterable<T>>, provided by the IterableValue extension

toString() String
A string representation of this object.
override
update(T newValue) → void
verify<T>({required T yes, required T no}) → T

Available on Value<bool>, provided by the BoolValue extension

where(bool test(T element)) Iterable<T>

Available on Value<Iterable<T>>, provided by the IterableValue extension

whereType<V>() Iterable<V>

Available on Value<Iterable<T>>, provided by the IterableValue extension

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](S key) → T?

Available on Value<Map<S, T>>, provided by the MapValue extension

operator [](int key) → T

Available on Value<Choice<T>>, provided by the ValueChoiceExtension extension