ReactiveN<T> class

Nullable Reactive

Inheritance
Available extensions

Constructors

ReactiveN([T? _value, bool _strict = true])

Properties

hashCode int
The hash code for this object.
no setterinherited
isEmpty bool

Available on Reactive<List<T>>, provided by the ReactiveList extension

Returns true if the list is empty.
no setter
isEmpty bool

Available on Reactive<String>, provided by the ReactiveString extension

Returns true if the string is empty after trimming whitespace.
no setter
isFalse bool

Available on Reactive<bool>, provided by the ReactiveBool extension

Returns true if the value is false.
no setter
isNegative bool

Available on Reactive<num>, provided by the ReactiveNum extension

Returns true if the value is negative (< 0).
no setter
isNotEmpty bool

Available on Reactive<List<T>>, provided by the ReactiveList extension

Returns true if the list is not empty.
no setter
isNotEmpty bool

Available on Reactive<String>, provided by the ReactiveString extension

Returns true if the string is not empty after trimming whitespace.
no setter
isPositive bool

Available on Reactive<num>, provided by the ReactiveNum extension

Returns true if the value is positive (> 0).
no setter
isTrue bool

Available on Reactive<bool>, provided by the ReactiveBool extension

Returns true if the value is true.
no setter
isZero bool

Available on Reactive<num>, provided by the ReactiveNum extension

Returns true if the value is exactly zero.
no setter
length int

Available on Reactive<List<T>>, provided by the ReactiveList extension

Returns the length of the list.
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<List<T>>, provided by the ReactiveList extension

Adds item to the end of the list.
addAll(Iterable<T> items) → void

Available on Reactive<List<T>>, provided by the ReactiveList extension

Adds all items from items to the end of the list.
addToSet(T item) → void

Available on Reactive<List<T>>, provided by the ReactiveList extension

Adds item to the list only if it does not already exist.
append(String text) → void

Available on Reactive<String>, provided by the ReactiveString extension

Appends text to 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<num>, provided by the ReactiveNum extension

Clamps the numeric value between min and max.
clear() → void

Available on Reactive<String>, provided by the ReactiveString extension

Clears the string, setting it to an empty value.
clear() → void

Available on Reactive<Map<K, V>>, provided by the ReactiveMap extension

Clears all entries in the reactive map.
clear() → void

Available on Reactive<List<T>>, provided by the ReactiveList extension

Clears the list.
contains(String other, {bool caseSensitive = true}) bool

Available on Reactive<String>, provided by the ReactiveString extension

Checks if the string contains other.
debounce(int milliseconds, _ReactiveListener<T?> callback) → void
Debounces value change notifications.
inherited
dec([num by = 1]) → void

Available on Reactive<num>, provided by the ReactiveNum extension

Alias for decrement.
decrement([num by = 1]) → void

Available on Reactive<num>, provided by the ReactiveNum extension

Decrements the numeric value by by (default: 1).
disable() → void

Available on Reactive<bool>, provided by the ReactiveBool extension

Sets the value to false.
dispose() → void
Dispose everything when done.
inherited
enable() → void

Available on Reactive<bool>, provided by the ReactiveBool extension

Sets the value to true.
firstWhereOrNull(bool test(T)) → T?

Available on Reactive<List<T>>, provided by the ReactiveList extension

Returns the first element that satisfies test, or null if none found.
has(String key) bool

Available on Reactive<Map<K, V>>, provided by the ReactiveMap extension

Returns true if the reactive map contains key and its value is not null.
inc([num by = 1]) → void

Available on Reactive<num>, provided by the ReactiveNum extension

Alias for increment.
increment([num by = 1]) → void

Available on Reactive<num>, provided by the ReactiveNum extension

Increments the numeric value by by (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<String>, provided by the ReactiveString extension

Prepends text to the current string.
put(K key, V value) → void

Available on Reactive<Map<K, V>>, provided by the ReactiveMap extension

Inserts or updates a key-value pair in the reactive map.
remove(T item) → void

Available on Reactive<List<T>>, provided by the ReactiveList extension

Removes item from the list.
remove(K key) → void

Available on Reactive<Map<K, V>>, provided by the ReactiveMap extension

Removes a key from the reactive map.
removeAll(T item) → void

Available on Reactive<List<T>>, provided by the ReactiveList extension

Removes all occurrences of item.
removeWhere(bool test(T)) → void

Available on Reactive<List<T>>, provided by the ReactiveList extension

Removes all elements that match test.
roundTo(int digits) → void

Available on Reactive<num>, provided by the ReactiveNum extension

Rounds the numeric value to digits decimal places.
set(T? newValue) → void
Sets a new value.
inherited
toggle() → void

Available on Reactive<bool>, provided by the ReactiveBool extension

Toggles the boolean value between true and false.
toLower() → void

Available on Reactive<String>, provided by the ReactiveString extension

Converts the string to lowercase.
toString() String
Returns the string representation of the current value.
inherited
toUpper() → void

Available on Reactive<String>, provided by the ReactiveString extension

Converts the string to uppercase.
trim() → void

Available on Reactive<String>, provided by the ReactiveString extension

Trims whitespace from the start and end of the string.
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<List<T>>, provided by the ReactiveList extension

Returns a filtered list containing elements that satisfy test.

Operators

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