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
-
- Value<
T>
- Value<
- Implementers
- Available extensions
Constructors
- AValue()
Properties
- current → T
-
Available on Value<
The actual content for this item.Choice< , provided by the ValueChoiceExtension extensionT> >
The current value of this choice item.no setter -
entries
→ Iterable<
MapEntry< S, T> > -
Available on Value<
Map< , provided by the MapValue extensionS, T> >no setter - first → T
-
Available on Value<
Iterable< , provided by the IterableValue extensionT> >no setter - first → T
-
Available on Value<
Get the first value of this choice item.Choice< , provided by the ValueChoiceExtension extensionT> >no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
Available on Value<
Iterable< , provided by the IterableValue extensionT> >no setter - isEmpty → bool
-
Available on Value<
Map< , provided by the MapValue extensionS, T> >no setter - isFalse → bool
-
Available on Value<
bool> , provided by the BoolValue extensionno setter - isNotEmpty → bool
-
Available on Value<
Iterable< , provided by the IterableValue extensionT> >no setter - isNotEmpty → bool
-
Available on Value<
Map< , provided by the MapValue extensionS, T> >no setter - isSelected → bool
-
Available on Value<
Indicates selected or not selectedChoice< , provided by the ValueChoiceExtension extensionT> >
Check this to know if the current choice is selectedno setter - isTrue → bool
-
Available on Value<
bool> , provided by the BoolValue extensionno setter - isUnselected → bool
-
Available on Value<
Indicates selected or not selectedChoice< , provided by the ValueChoiceExtension extensionT> >
This is the opposite of isSelectedno setter -
iterator
→ Iterator<
T> -
Available on Value<
Iterable< , provided by the IterableValue extensionT> >no setter -
keys
→ Iterable<
S> -
Available on Value<
Map< , provided by the MapValue extensionS, T> >no setter - last → T
-
Available on Value<
Iterable< , provided by the IterableValue extensionT> >no setter - last → T
-
Available on Value<
Get the last value of this choice item.Choice< , provided by the ValueChoiceExtension extensionT> >no setter - length → int
-
Available on Value<
Iterable< , provided by the IterableValue extensionT> >no setter - length → int
-
Available on Value<
Map< , provided by the MapValue extensionS, T> >no setter - length → int
-
Available on Value<
Choice< , provided by the ValueChoiceExtension extensionT> >no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- single → T
-
Available on Value<
Iterable< , provided by the IterableValue extensionT> >no setter - value → T
-
Get the current value
no setteroverride
-
values
→ Iterable<
T> -
Available on Value<
Map< , provided by the MapValue extensionS, T> >no setter
Methods
-
any(
bool test(T element)) → bool -
Available on Value<
Iterable< , provided by the IterableValue extensionT> > -
call(
T newValue) → void - convenient method for updating the LiveValue
-
cast<
RK, RV> () → Map< RK, RV> -
Available on Value<
Map< , provided by the MapValue extensionS, T> > -
cast<
R> () → Iterable< R> -
Available on Value<
Iterable< , provided by the IterableValue extensionT> > -
contains(
T element) → bool -
Available on Value<
Iterable< , provided by the IterableValue extensionT> > -
containsKey(
S key) → bool -
Available on Value<
Map< , provided by the MapValue extensionS, T> > -
containsValue(
S value) → bool -
Available on Value<
Map< , provided by the MapValue extensionS, T> > -
dispose(
) → void -
Wipes object data from memory
override
-
elementAt(
int index) → T -
Available on Value<
Iterable< , provided by the IterableValue extensionT> > -
every(
bool test(T element)) → bool -
Available on Value<
Iterable< , provided by the IterableValue extensionT> > -
expand<
Y> (Iterable< Y> toElements(T element)) → Iterable<Y> -
Available on Value<
Iterable< , provided by the IterableValue extensionT> > -
firstWhere(
bool test(T element), {T orElse()?}) → T -
Available on Value<
Iterable< , provided by the IterableValue extensionT> > -
fold<
Y> (Y initialValue, Y combine(Y previousValue, T element)) → Y -
Available on Value<
Iterable< , provided by the IterableValue extensionT> > -
followedBy(
Iterable< T> other) → Iterable<T> -
Available on Value<
Iterable< , provided by the IterableValue extensionT> > -
forEach(
void action(S key, T value)) → void -
Available on Value<
Map< , provided by the MapValue extensionS, T> > -
forEach(
void action(T element)) → void -
Available on Value<
Iterable< , provided by the IterableValue extensionT> > -
get(
Map< String, dynamic> properties) → T -
Available on Value<
Get the current value of this choice item.Choice< , provided by the ValueChoiceExtension extensionT> >
-
join(
[String separator = ""]) → String -
Available on Value<
Iterable< , provided by the IterableValue extensionT> > -
lastWhere(
bool test(T element), {T orElse()?}) → T -
Available on Value<
Iterable< , provided by the IterableValue extensionT> > -
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< , provided by the MapValue extensionS, T> > -
map<
S> (S toElement(T e)) → Iterable< S> -
Available on Value<
Iterable< , provided by the IterableValue extensionT> > -
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
observerto 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< , provided by the IterableValue extensionT> > -
remove(
VoidCallback reactor) → void -
removes the give
reactorlistenerinherited -
removeObserver(
ValueObserverCallback< T> observer) → void -
Removes the
observerfrom 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< , provided by the IterableValue extensionT> > -
skip(
int count) → Iterable< T> -
Available on Value<
Iterable< , provided by the IterableValue extensionT> > -
skipWhile(
bool test(T value)) → Iterable< T> -
Available on Value<
Iterable< , provided by the IterableValue extensionT> > -
take(
int count) → Iterable< T> -
Available on Value<
Iterable< , provided by the IterableValue extensionT> > -
takeWhile(
bool test(T value)) → Iterable< T> -
Available on Value<
Iterable< , provided by the IterableValue extensionT> > -
toList(
{required bool growable}) → List< T> -
Available on Value<
Iterable< , provided by the IterableValue extensionT> > -
toSet(
) → Set< T> -
Available on Value<
Iterable< , provided by the IterableValue extensionT> > -
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< , provided by the IterableValue extensionT> > -
whereType<
V> () → Iterable< V> -
Available on Value<
Iterable< , provided by the IterableValue extensionT> >
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
S key) → T? -
Available on Value<
Map< , provided by the MapValue extensionS, T> > -
operator [](
int key) → T -
Available on Value<
Choice< , provided by the ValueChoiceExtension extensionT> >