ReactiveN<T> class
Nullable Reactive
- Inheritance
- Available extensions
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
Available on Reactive<
Returns true if the list is empty.List< , provided by the ReactiveList extensionT> >no setter - isEmpty → bool
-
Available on Reactive<
Returns true if the string is empty after trimming whitespace.String> , provided by the ReactiveString extensionno setter - isFalse → bool
-
Available on Reactive<
Returns true if the value is false.bool> , provided by the ReactiveBool extensionno setter - isNegative → bool
-
Available on Reactive<
Returns true if the value is negative (< 0).num> , provided by the ReactiveNum extensionno setter - isNotEmpty → bool
-
Available on Reactive<
Returns true if the list is not empty.List< , provided by the ReactiveList extensionT> >no setter - isNotEmpty → bool
-
Available on Reactive<
Returns true if the string is not empty after trimming whitespace.String> , provided by the ReactiveString extensionno setter - isPositive → bool
-
Available on Reactive<
Returns true if the value is positive (> 0).num> , provided by the ReactiveNum extensionno setter - isTrue → bool
-
Available on Reactive<
Returns true if the value is true.bool> , provided by the ReactiveBool extensionno setter - isZero → bool
-
Available on Reactive<
Returns true if the value is exactly zero.num> , provided by the ReactiveNum extensionno setter - length → int
-
Available on Reactive<
Returns the length of the list.List< , provided by the ReactiveList extensionT> >no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stream
→ Stream<
T?> -
Expose a broadcast stream of value changes.
no setterinherited
- value ↔ T?
-
Current value of the reactive.
getter/setter pairinherited
Methods
-
add(
T item) → void -
Available on Reactive<
AddsList< , provided by the ReactiveList extensionT> >itemto the end of the list. -
addAll(
Iterable< T> items) → void -
Available on Reactive<
Adds all items fromList< , provided by the ReactiveList extensionT> >itemsto the end of the list. -
addToSet(
T item) → void -
Available on Reactive<
AddsList< , provided by the ReactiveList extensionT> >itemto the list only if it does not already exist. -
append(
String text) → void -
Available on Reactive<
AppendsString> , provided by the ReactiveString extensiontextto the current string. -
bind(
State< StatefulWidget> state) → void -
Binds a Flutter State to this reactive.
inherited
-
clamp(
int min, int max) → void -
Available on Reactive<
Clamps the numeric value betweennum> , provided by the ReactiveNum extensionminandmax. -
clear(
) → void -
Available on Reactive<
Clears the string, setting it to an empty value.String> , provided by the ReactiveString extension -
clear(
) → void -
Available on Reactive<
Clears all entries in the reactive map.Map< , provided by the ReactiveMap extensionK, V> > -
clear(
) → void -
Available on Reactive<
Clears the list.List< , provided by the ReactiveList extensionT> > -
contains(
String other, {bool caseSensitive = true}) → bool -
Available on Reactive<
Checks if the string containsString> , provided by the ReactiveString extensionother. -
debounce(
int milliseconds, _ReactiveListener< T?> callback) → void -
Debounces value change notifications.
inherited
-
dec(
[num by = 1]) → void -
Available on Reactive<
Alias for decrement.num> , provided by the ReactiveNum extension -
decrement(
[num by = 1]) → void -
Available on Reactive<
Decrements the numeric value bynum> , provided by the ReactiveNum extensionby(default: 1). -
disable(
) → void -
Available on Reactive<
Sets the value to false.bool> , provided by the ReactiveBool extension -
dispose(
) → void -
Dispose everything when done.
inherited
-
enable(
) → void -
Available on Reactive<
Sets the value to true.bool> , provided by the ReactiveBool extension -
firstWhereOrNull(
bool test(T)) → T? -
Available on Reactive<
Returns the first element that satisfiesList< , provided by the ReactiveList extensionT> >test, or null if none found. -
has(
String key) → bool -
Available on Reactive<
Returns true if the reactive map containsMap< , provided by the ReactiveMap extensionK, V> >keyand its value is not null. -
inc(
[num by = 1]) → void -
Available on Reactive<
Alias for increment.num> , provided by the ReactiveNum extension -
increment(
[num by = 1]) → void -
Available on Reactive<
Increments the numeric value bynum> , provided by the ReactiveNum extensionby(default: 1). -
listen(
_ReactiveListener< T?> callback) → void -
Adds a listener that will be called on every value change.
inherited
-
mutate(
void mutator(T? value)) → void -
Mutates the current value in place and forces a notification.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notify(
) → void -
Notifies both bound states, listeners and stream.
inherited
-
prepend(
String text) → void -
Available on Reactive<
PrependsString> , provided by the ReactiveString extensiontextto the current string. -
put(
K key, V value) → void -
Available on Reactive<
Inserts or updates a key-value pair in the reactive map.Map< , provided by the ReactiveMap extensionK, V> > -
remove(
T item) → void -
Available on Reactive<
RemovesList< , provided by the ReactiveList extensionT> >itemfrom the list. -
remove(
K key) → void -
Available on Reactive<
Removes a key from the reactive map.Map< , provided by the ReactiveMap extensionK, V> > -
removeAll(
T item) → void -
Available on Reactive<
Removes all occurrences ofList< , provided by the ReactiveList extensionT> >item. -
removeWhere(
bool test(T)) → void -
Available on Reactive<
Removes all elements that matchList< , provided by the ReactiveList extensionT> >test. -
roundTo(
int digits) → void -
Available on Reactive<
Rounds the numeric value tonum> , provided by the ReactiveNum extensiondigitsdecimal places. -
set(
T? newValue) → void -
Sets a new value.
inherited
-
toggle(
) → void -
Available on Reactive<
Toggles the boolean value between true and false.bool> , provided by the ReactiveBool extension -
toLower(
) → void -
Available on Reactive<
Converts the string to lowercase.String> , provided by the ReactiveString extension -
toString(
) → String -
Returns the string representation of the current value.
inherited
-
toUpper(
) → void -
Available on Reactive<
Converts the string to uppercase.String> , provided by the ReactiveString extension -
trim(
) → void -
Available on Reactive<
Trims whitespace from the start and end of the string.String> , provided by the ReactiveString extension -
unbind(
State< StatefulWidget> state) → void -
Unbinds a previously bound State.
inherited
-
unlisten(
_ReactiveListener< T?> callback) → void -
Removes a previously registered listener.
inherited
-
update(
T? fn(T? current)) → void -
Updates the value using a transformation function.
inherited
-
where(
bool test(T)) → List< T> -
Available on Reactive<
Returns a filtered list containing elements that satisfyList< , provided by the ReactiveList extensionT> >test.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited