Rx<T> class

A reactive value holder that uses Flutter's ValueNotifier under the hood

Inheritance
Implemented types
Implementers
Available extensions

Constructors

Rx(T initialValue)

Properties

abs → double

Available on Rx<double>, provided by the RxDoubleExtensions extension

Get absolute value
no setter
abs → int

Available on Rx<int>, provided by the RxIntExtensions extension

Get absolute value
no setter
entries → Iterable<MapEntry<K, V>>

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

no setter
first → T

Available on Rx<List<T>>, provided by the RxListExtensions extension

Get first element (throws if empty - matches List<T>.first behavior)
no setter
firstOrNull → T?

Available on Rx<Set<T>>, provided by the RxSetExtensions extension

no setter
firstOrNull → T?

Available on Rx<List<T>>, provided by the RxListExtensions extension

no setter
hashCode → int
The hash code for this object.
no setterinherited
hasListeners → bool
Whether any listeners are currently registered.
no setterinherited
hasValue → bool

Available on Rx<T?>, provided by the RxNullableErrorHandling extension

Check if value is not null
no setter
isDisposed → bool
Whether this Rx instance has been disposed
no setter
isEmpty → bool

Available on Rx<String>, provided by the RxStringExtensions extension

Check if string is empty
no setter
isEmpty → bool

Available on Rx<List<T>>, provided by the RxListExtensions extension

no setter
isEmpty → bool

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

no setter
isEmpty → bool

Available on Rx<Set<T>>, provided by the RxSetExtensions extension

no setter
isEven → bool

Available on Rx<int>, provided by the RxIntExtensions extension

Check if number is even
no setter
isFinite → bool

Available on Rx<double>, provided by the RxDoubleExtensions extension

Check if number is finite
no setter
isInfinite → bool

Available on Rx<double>, provided by the RxDoubleExtensions extension

Check if number is infinite
no setter
isNaN → bool

Available on Rx<double>, provided by the RxDoubleExtensions extension

Check if number is NaN
no setter
isNegative → bool

Available on Rx<double>, provided by the RxDoubleExtensions extension

Check if number is negative
no setter
isNegative → bool

Available on Rx<int>, provided by the RxIntExtensions extension

Check if number is negative
no setter
isNotEmpty → bool

Available on Rx<List<T>>, provided by the RxListExtensions extension

no setter
isNotEmpty → bool

Available on Rx<String>, provided by the RxStringExtensions extension

Check if string is not empty
no setter
isNotEmpty → bool

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

no setter
isNotEmpty → bool

Available on Rx<Set<T>>, provided by the RxSetExtensions extension

no setter
isOdd → bool

Available on Rx<int>, provided by the RxIntExtensions extension

Check if number is odd
no setter
keys → Iterable<K>

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

no setter
last → T

Available on Rx<List<T>>, provided by the RxListExtensions extension

Get last element (throws if empty - matches List<T>.last behavior)
no setter
lastOrNull → T?

Available on Rx<List<T>>, provided by the RxListExtensions extension

no setter
lastOrNull → T?

Available on Rx<Set<T>>, provided by the RxSetExtensions extension

no setter
length → int

Available on Rx<List<T>>, provided by the RxListExtensions extension

no setter
length → int

Available on Rx<String>, provided by the RxStringExtensions extension

Get string length
no setter
length → int

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

no setter
length → int

Available on Rx<Set<T>>, provided by the RxSetExtensions extension

no setter
performanceStats → Map<String, dynamic>

Available on Rx<T>, provided by the RxPerformanceExtensions extension

Get performance statistics
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
rxFirst → RxComputed<T?>

Available on Rx<List<T>>, provided by the RxListTransformations extension

Get first element (or null)
no setter
rxIsEmpty → RxComputed<bool>

Available on Rx<List<T>>, provided by the RxListTransformations extension

Check if list is empty
no setter
rxLast → RxComputed<T?>

Available on Rx<List<T>>, provided by the RxListTransformations extension

Get last element (or null)
no setter
rxLength → RxComputed<int>

Available on Rx<List<T>>, provided by the RxListTransformations extension

Get list length as reactive value
no setter
sign → double

Available on Rx<double>, provided by the RxDoubleExtensions extension

Get sign (-1.0, 0.0, or 1.0) - NOTE: double.sign returns double!
no setter
sign → int

Available on Rx<int>, provided by the RxIntExtensions extension

Get sign (-1, 0, or 1)
no setter
single → T

Available on Rx<List<T>>, provided by the RxListExtensions extension

Get single element (throws if empty or more than one - matches List<T>.single behavior)
no setter
singleOrNull → T?

Available on Rx<List<T>>, provided by the RxListExtensions extension

no setter
singleOrNull → T?

Available on Rx<Set<T>>, provided by the RxSetExtensions extension

no setter
tryFirst → RxResult<T>

Available on Rx<List<T>>, provided by the RxListExtensions extension

no setter
tryFirst → RxResult<T>

Available on Rx<Set<T>>, provided by the RxSetExtensions extension

no setter
tryLast → RxResult<T>

Available on Rx<Set<T>>, provided by the RxSetExtensions extension

no setter
tryLast → RxResult<T>

Available on Rx<List<T>>, provided by the RxListExtensions extension

no setter
trySingle → RxResult<T>

Available on Rx<List<T>>, provided by the RxListExtensions extension

no setter
trySingle → RxResult<T>

Available on Rx<Set<T>>, provided by the RxSetExtensions extension

no setter
value ↔ T
The current value stored in this notifier.
getter/setter pairoverride
values → Iterable<V>

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

no setter

Methods

add(T element) → void

Available on Rx<List<T>>, provided by the RxListExtensions extension

Add element (convenience method that calls tryAdd internally)
add(T item) → bool

Available on Rx<Set<T>>, provided by the RxSetExtensions extension

Add item (convenience method)
addAll(Iterable<T> elements) → void

Available on Rx<Set<T>>, provided by the RxSetExtensions extension

Add all items (convenience method)
addAll(Iterable<T> elements) → void

Available on Rx<List<T>>, provided by the RxListExtensions extension

Add all elements (convenience method that calls tryAddAll internally)
addAll(Map<K, V> other) → void

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Add all entries (convenience method)
addEntries(Iterable<MapEntry<K, V>> newEntries) → void

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Add entries (convenience method)
addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
any(bool test(T element)) → bool

Available on Rx<List<T>>, provided by the RxListExtensions extension

any(bool test(T item)) → bool

Available on Rx<Set<T>>, provided by the RxSetExtensions extension

append(String text) → void

Available on Rx<String>, provided by the RxStringExtensions extension

Append text (convenience method)
asNullable() → RxComputed<T?>

Available on Rx<T>, provided by the RxTransformations extension

Convert to nullable type
assignAll(Iterable<T> elements) → void

Available on Rx<List<T>>, provided by the RxListExtensions extension

Replace all elements (convenience method that calls tryAssignAll internally)
buffer(Duration duration, void callback(List<T> values)) → void

Available on Rx<T>, provided by the RxTimingExtensions extension

Buffer value changes for specified duration
bulkUpdate(void updater(List<T> items)) → void

Available on Rx<List<T>>, provided by the RxListExtensions extension

Perform bulk updates efficiently (only one notification)
call() → T
Call operator for consistent access patterns
override
cast<RK, RV>() → Map<RK, RV>

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

ceil() → void

Available on Rx<double>, provided by the RxDoubleExtensions extension

Ceiling to integer
chainSafe<R>(RxResult<R> operation(T value), {String? context}) → RxResult<R>

Available on Rx<T>, provided by the RxErrorHandling extension

Chain operations with error handling
cleanupTiming() → void

Available on Rx<T>, provided by the RxPerformanceExtensions extension

Cleanup timing resources for this instance
clear() → void

Available on Rx<String>, provided by the RxStringExtensions extension

Clear (convenience method)
clear() → void

Available on Rx<List<T>>, provided by the RxListExtensions extension

Clear list (convenience method that calls tryClear internally)
clear() → void

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Clear map (convenience method)
clear() → void

Available on Rx<Set<T>>, provided by the RxSetExtensions extension

Clear set (convenience method)
combineLatest<U, R>(Rx<U> other, R combiner(T, U)) → RxComputed<R>

Available on Rx<T>, provided by the RxTransformations extension

Combine with another reactive value
combineWith<U, R>(Rx<U> other, R combiner(T a, U b)) → RxComputed<R>

Available on Rx<T>, provided by the RxComputedExtensions extension

computeSafe<R>(R computation(T value)) → Rx<R?>

Available on Rx<T>, provided by the RxErrorHandling extension

Create error-safe computed value
contains(Pattern other) → bool

Available on Rx<String>, provided by the RxStringExtensions extension

Check if string contains substring
contains(T element) → bool

Available on Rx<List<T>>, provided by the RxListExtensions extension

contains(Object? element) → bool

Available on Rx<Set<T>>, provided by the RxSetExtensions extension

containsKey(Object? key) → bool

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

containsValue(Object? val) → bool

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

debounce(Duration duration, void callback(T value)) → void

Available on Rx<T>, provided by the RxTimingExtensions extension

Debounce value changes - callback is called after duration of inactivity
decrement([int step = 1]) → void

Available on Rx<int>, provided by the RxIntExtensions extension

Decrement (convenience method)
decrement([double step = 1.0]) → void

Available on Rx<double>, provided by the RxDoubleExtensions extension

Decrement (convenience method)
delay(Duration duration, void callback(T value)) → void

Available on Rx<T>, provided by the RxTimingExtensions extension

Delay value changes by specified duration
difference(Set<Object?> other) → Set<T>

Available on Rx<Set<T>>, provided by the RxSetExtensions extension

dispose() → void
Discards any resources used by the object.
override
distinct(void callback(T value), [bool equals(T previous, T current)?]) → void

Available on Rx<T>, provided by the RxTimingExtensions extension

Only call callback when value actually changes (distinct)
distinctMap<R>(R mapper(T)) → RxComputed<R>

Available on Rx<T>, provided by the RxTransformations extension

Create a reactive value that only updates when the mapped value changes
divide(num divisor) → void

Available on Rx<int>, provided by the RxIntExtensions extension

Divide (convenience method)
divide(num divisor) → void

Available on Rx<double>, provided by the RxDoubleExtensions extension

Divide (convenience method)
elementAtOrNull(int index) → T?

Available on Rx<List<T>>, provided by the RxListExtensions extension

Safe element access (returns null instead of throwing)
endsWith(String other) → bool

Available on Rx<String>, provided by the RxStringExtensions extension

Check if string ends with suffix
every(bool test(T element)) → bool

Available on Rx<List<T>>, provided by the RxListExtensions extension

every(bool test(T item)) → bool

Available on Rx<Set<T>>, provided by the RxSetExtensions extension

expand<R>(Iterable<R> f(T element)) → Iterable<R>

Available on Rx<List<T>>, provided by the RxListExtensions extension

Expand operation
filter(bool predicate(T)) → RxComputed<T?>

Available on Rx<T>, provided by the RxTransformations extension

Filter values based on a predicate
firstWhere(bool test(T element), {T orElse()?}) → T

Available on Rx<List<T>>, provided by the RxListExtensions extension

floor() → void

Available on Rx<double>, provided by the RxDoubleExtensions extension

Floor to integer
fold<R>(R initialValue, R combine(R previousValue, T element)) → R

Available on Rx<List<T>>, provided by the RxListExtensions extension

Fold operation
forEach(void action(K key, V value)) → void

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

forEach(void action(T)) → void

Available on Rx<Set<T>>, provided by the RxSetExtensions extension

increment([int step = 1]) → void

Available on Rx<int>, provided by the RxIntExtensions extension

Increment (convenience method)
increment([double step = 1.0]) → void

Available on Rx<double>, provided by the RxDoubleExtensions extension

Increment (convenience method)
indexOf(Pattern pattern, [int start = 0]) → int

Available on Rx<String>, provided by the RxStringExtensions extension

Get index of substring
indexOf(T element, [int start = 0]) → int

Available on Rx<List<T>>, provided by the RxListExtensions extension

insert(int index, T element) → void

Available on Rx<List<T>>, provided by the RxListExtensions extension

Insert at index (convenience method that calls tryInsert internally)
insertAll(int index, Iterable<T> iterable) → void

Available on Rx<List<T>>, provided by the RxListExtensions extension

Insert all at index (convenience method)
intersection(Set<Object?> other) → Set<T>

Available on Rx<Set<T>>, provided by the RxSetExtensions extension

join([String separator = '']) → String

Available on Rx<Set<T>>, provided by the RxSetExtensions extension

join([String separator = '']) → String

Available on Rx<List<T>>, provided by the RxListExtensions extension

keyOr(K key, V fallback) → V

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Safe key access with fallback
lastIndexOf(Pattern pattern, [int? start]) → int

Available on Rx<String>, provided by the RxStringExtensions extension

Get last index of substring
lastIndexOf(T element, [int? start]) → int

Available on Rx<List<T>>, provided by the RxListExtensions extension

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

Available on Rx<List<T>>, provided by the RxListExtensions extension

listenMapped<R>(R transformer(T value), void callback(R value)) → void

Available on Rx<T>, provided by the RxTimingExtensions extension

Transform value before calling callback. Named listenMapped to distinguish from RxComputedExtensions.map which returns a computed value rather than registering a callback.
listenSafe(void listener(T value), {void onError(RxException error)?}) → void

Available on Rx<T>, provided by the RxErrorHandling extension

Listen with error handling
listenWhere(bool condition(T value), void callback(T value)) → void

Available on Rx<T>, provided by the RxTimingExtensions extension

Only call callback when value meets condition. Named listenWhere to distinguish from RxComputedExtensions.where which returns a computed value rather than registering a callback.
map<R>(R mapper(T element)) → Iterable<R>

Available on Rx<List<T>>, provided by the RxListExtensions extension

Map operation that returns a spreadable Iterable (for use with ... operator)
map<K2, V2>(MapEntry<K2, V2> f(K key, V value)) → Map<K2, V2>

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

map<R>(R mapper(T value)) → RxComputed<R>

Available on Rx<T>, provided by the RxComputedExtensions extension

map<R>(R f(T)) → Iterable<R>

Available on Rx<Set<T>>, provided by the RxSetExtensions extension

mapList<R>(R mapper(T)) → RxComputed<List<R>>

Available on Rx<List<T>>, provided by the RxListTransformations extension

Map list reactively
mapNotNull<R>(R mapper(T)) → RxComputed<R?>

Available on Rx<T?>, provided by the RxNullableTransformations extension

Map only non-null values
mapToRx<R>(R mapper(T element)) → Rx<List<R>>

Available on Rx<List<T>>, provided by the RxListExtensions extension

Map operation that returns a new reactive list
modulo(int divisor) → void

Available on Rx<int>, provided by the RxIntExtensions extension

Modulo (convenience method)
multiply(num factor) → void

Available on Rx<double>, provided by the RxDoubleExtensions extension

Multiply (convenience method)
multiply(num factor) → void

Available on Rx<int>, provided by the RxIntExtensions extension

Multiply (convenience method)
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
orElse(T fallback) → T

Available on Rx<T?>, provided by the RxNullableErrorHandling extension

Get value if not null, otherwise return fallback
orElseGet(T fallback()) → T

Available on Rx<T?>, provided by the RxNullableErrorHandling extension

Get value if not null, otherwise compute fallback
power(int exponent) → void

Available on Rx<int>, provided by the RxIntExtensions extension

Power (convenience method)
prepend(String text) → void

Available on Rx<String>, provided by the RxStringExtensions extension

Prepend text (convenience method)
putIfAbsent(K key, V ifAbsent()) → V

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Put if absent (convenience method)
reduce(T combine(T value, T element)) → T

Available on Rx<List<T>>, provided by the RxListExtensions extension

Reduce operation
refresh() → void
Refresh/notify listeners even if value hasn't changed
refresh() → void

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Convenience method to refresh listeners
refresh() → void

Available on Rx<Set<T>>, provided by the RxSetExtensions extension

Convenience method to refresh listeners
refresh() → void

Available on Rx<List<T>>, provided by the RxListExtensions extension

Convenience method to refresh listeners
remove(T element) → bool

Available on Rx<List<T>>, provided by the RxListExtensions extension

Remove element (convenience method that calls tryRemove internally)
remove(Object? item) → bool

Available on Rx<Set<T>>, provided by the RxSetExtensions extension

Remove item (convenience method)
remove(Object? key) → V?

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Remove key (convenience method)
removeAll(Iterable<Object?> elements) → void

Available on Rx<Set<T>>, provided by the RxSetExtensions extension

Remove all items (convenience method)
removeAt(int index) → T?

Available on Rx<List<T>>, provided by the RxListExtensions extension

Remove at index (convenience method that calls tryRemoveAt internally)
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
removeWhere(bool test(T element)) → void

Available on Rx<List<T>>, provided by the RxListExtensions extension

Remove where (convenience method that calls tryRemoveWhere internally)
removeWhere(bool predicate(K key, V value)) → void

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Remove where (convenience method)
removeWhere(bool test(T item)) → void

Available on Rx<Set<T>>, provided by the RxSetExtensions extension

Remove where (convenience method)
replace(Pattern from, String replacement) → void

Available on Rx<String>, provided by the RxStringExtensions extension

Replace (convenience method)
replaceRange(int start, int end, Iterable<T> replacements) → void

Available on Rx<List<T>>, provided by the RxListExtensions extension

Replace range (convenience method)
requireValue([String? context]) → T

Available on Rx<T?>, provided by the RxNullableErrorHandling extension

Get non-null value or throw with context
resetPerformanceStats() → void

Available on Rx<T>, provided by the RxPerformanceExtensions extension

Reset performance statistics
retainWhere(bool test(T element)) → void

Available on Rx<List<T>>, provided by the RxListExtensions extension

Retain where (convenience method)
retainWhere(bool test(T item)) → void

Available on Rx<Set<T>>, provided by the RxSetExtensions extension

Retain where (convenience method)
round() → void

Available on Rx<double>, provided by the RxDoubleExtensions extension

Round to nearest integer
sample(Duration interval, void callback(T value)) → StreamSubscription<T>

Available on Rx<T>, provided by the RxTimingExtensions extension

Sample value changes at regular intervals
setFalse() → void

Available on Rx<bool>, provided by the RxBoolExtensions extension

Set to false (convenience method)
setFromAsync(Future<T> operation(), {String? context}) → Future<RxResult<void>>

Available on Rx<T>, provided by the RxAsyncErrorHandling extension

Set value from async operation with error handling
setTrue() → void

Available on Rx<bool>, provided by the RxBoolExtensions extension

Set to true (convenience method)
setWithValidation(T newValue, bool validator(T value), {String? validationMessage}) → RxResult<void>

Available on Rx<T>, provided by the RxErrorHandling extension

Set value with validation
shuffle([Random? random]) → void

Available on Rx<List<T>>, provided by the RxListExtensions extension

Shuffle list (convenience method)
singleWhere(bool test(T element), {T orElse()?}) → T

Available on Rx<List<T>>, provided by the RxListExtensions extension

skip(int count) → Iterable<T>

Available on Rx<List<T>>, provided by the RxListExtensions extension

Skip operation
skip(int count) → RxComputed<T?>

Available on Rx<T>, provided by the RxTransformations extension

Skip the first n values, returns null until exhausted. Always accesses value so dependency tracking is maintained, fixing a bug where the computed became permanently dead during the skip phase (since it never accessed value and thus tracked no dependencies).
skipFirst(int count, void callback(T value)) → void

Available on Rx<T>, provided by the RxTimingExtensions extension

Skip first n value changes (callback-style listener) NOTE: Named skipFirst to avoid ambiguity with RxTransformations.skip which returns a computed value instead of registering a callback.
skipWhile(bool test(T element)) → Iterable<T>

Available on Rx<List<T>>, provided by the RxListExtensions extension

SkipWhile operation
sort([int compare(T a, T b)?]) → void

Available on Rx<List<T>>, provided by the RxListExtensions extension

Sort list (convenience method that calls trySort internally)
sortedBy<R extends Comparable>(R keySelector(T)) → RxComputed<List<T>>

Available on Rx<List<T>>, provided by the RxListTransformations extension

Sort list reactively
split(Pattern pattern) → List<String>

Available on Rx<String>, provided by the RxStringExtensions extension

Split string
startsWith(Pattern pattern) → bool

Available on Rx<String>, provided by the RxStringExtensions extension

Check if string starts with prefix
substring(int startIndex, [int? endIndex]) → String

Available on Rx<String>, provided by the RxStringExtensions extension

Get substring
switchMap<R>(RxComputed<R> mapper(T)) → RxComputed<R>

Available on Rx<T>, provided by the RxTransformations extension

Switch to a new reactive value based on current value
take(int count) → Iterable<T>

Available on Rx<List<T>>, provided by the RxListExtensions extension

Take operation
take(int count) → RxComputed<T?>

Available on Rx<T>, provided by the RxTransformations extension

Take the first n values, returns null once exhausted. Always accesses value so dependency tracking is maintained, ensuring re-evaluation when the source changes.
takeFirst(int count, void callback(T value)) → void

Available on Rx<T>, provided by the RxTimingExtensions extension

Take only first n value changes (callback-style listener) NOTE: Named takeFirst to avoid ambiguity with RxTransformations.take which returns a computed value instead of registering a callback.
takeWhile(bool test(T element)) → Iterable<T>

Available on Rx<List<T>>, provided by the RxListExtensions extension

TakeWhile operation
throttle(Duration duration, void callback(T value)) → void

Available on Rx<T>, provided by the RxTimingExtensions extension

Throttle value changes - callback is called at most once per duration
toggle() → void

Available on Rx<bool>, provided by the RxBoolExtensions extension

Toggle (convenience method)
toList({bool growable = true}) → List<T>

Available on Rx<List<T>>, provided by the RxListExtensions extension

toList({bool growable = true}) → List<T>

Available on Rx<Set<T>>, provided by the RxSetExtensions extension

toLowerCase() → void

Available on Rx<String>, provided by the RxStringExtensions extension

Convert to lowercase (convenience method)
toSet() → Set<T>

Available on Rx<List<T>>, provided by the RxListExtensions extension

toSet() → Set<T>

Available on Rx<Set<T>>, provided by the RxSetExtensions extension

toString() → String
A string representation of this object.
override
toUpperCase() → void

Available on Rx<String>, provided by the RxStringExtensions extension

Convert to uppercase (convenience method)
trackChange() → void

Available on Rx<T>, provided by the RxPerformanceExtensions extension

Track a change for performance monitoring
transform<R>(R mapper(T)) → RxComputed<R>

Available on Rx<T>, provided by the RxTransformations extension

Transform this reactive value to another type
transformSafe<R>(R transformer(T value), {String? context}) → RxResult<R>

Available on Rx<T>, provided by the RxErrorHandling extension

Transform value with error handling
trim() → void

Available on Rx<String>, provided by the RxStringExtensions extension

Trim (convenience method)
truncate() → void

Available on Rx<double>, provided by the RxDoubleExtensions extension

Truncate to integer
tryAdd(T element) → RxResult<void>

Available on Rx<List<T>>, provided by the RxListExtensions extension

Add element with error handling
tryAdd(T item) → RxResult<bool>

Available on Rx<Set<T>>, provided by the RxSetExtensions extension

Add item with error handling
tryAddAll(Iterable<T> elements) → RxResult<void>

Available on Rx<List<T>>, provided by the RxListExtensions extension

Add all elements with error handling
tryAddAll(Map<K, V> other) → RxResult<void>

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Add all entries with error handling
tryAddAll(Iterable<T> elements) → RxResult<void>

Available on Rx<Set<T>>, provided by the RxSetExtensions extension

Add all items with error handling
tryAddEntries(Iterable<MapEntry<K, V>> newEntries) → RxResult<void>

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Add entries with error handling
tryAppend(String text) → RxResult<void>

Available on Rx<String>, provided by the RxStringExtensions extension

Append text with error handling
tryAssignAll(Iterable<T> elements) → RxResult<void>

Available on Rx<List<T>>, provided by the RxListExtensions extension

Replace all elements with error handling
tryClear() → RxResult<void>

Available on Rx<String>, provided by the RxStringExtensions extension

Clear with error handling
tryClear() → RxResult<void>

Available on Rx<Set<T>>, provided by the RxSetExtensions extension

Clear set with error handling
tryClear() → RxResult<void>

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Clear map with error handling
tryClear() → RxResult<void>

Available on Rx<List<T>>, provided by the RxListExtensions extension

Clear list with error handling
tryDecrement([double step = 1.0]) → RxResult<void>

Available on Rx<double>, provided by the RxDoubleExtensions extension

Decrement with error handling
tryDecrement([int step = 1]) → RxResult<void>

Available on Rx<int>, provided by the RxIntExtensions extension

Decrement with error handling
tryDivide(num divisor) → RxResult<void>

Available on Rx<double>, provided by the RxDoubleExtensions extension

Divide with error handling
tryDivide(num divisor) → RxResult<void>

Available on Rx<int>, provided by the RxIntExtensions extension

Divide with error handling
tryElementAt(int index) → RxResult<T>

Available on Rx<List<T>>, provided by the RxListExtensions extension

Get element with error handling
tryGetKey(K key) → RxResult<V>

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Safe key access with error handling
tryGetValue({String? context}) → RxResult<T>

Available on Rx<T>, provided by the RxErrorHandling extension

Get value with error handling
tryIncrement([double step = 1.0]) → RxResult<void>

Available on Rx<double>, provided by the RxDoubleExtensions extension

Increment with error handling
tryIncrement([int step = 1]) → RxResult<void>

Available on Rx<int>, provided by the RxIntExtensions extension

Increment with error handling
tryInsert(int index, T element) → RxResult<void>

Available on Rx<List<T>>, provided by the RxListExtensions extension

Insert at index with validation
tryInsertAll(int index, Iterable<T> iterable) → RxResult<void>

Available on Rx<List<T>>, provided by the RxListExtensions extension

Insert all at index with validation
tryModulo(int divisor) → RxResult<void>

Available on Rx<int>, provided by the RxIntExtensions extension

Modulo with error handling
tryMultiply(num factor) → RxResult<void>

Available on Rx<int>, provided by the RxIntExtensions extension

Multiply with error handling
tryMultiply(num factor) → RxResult<void>

Available on Rx<double>, provided by the RxDoubleExtensions extension

Multiply with error handling
tryPower(int exponent) → RxResult<void>

Available on Rx<int>, provided by the RxIntExtensions extension

Power with error handling
tryPrepend(String text) → RxResult<void>

Available on Rx<String>, provided by the RxStringExtensions extension

Prepend text with error handling
tryPutIfAbsent(K key, V ifAbsent()) → RxResult<V>

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Put if absent with error handling
tryRemove(T element) → RxResult<bool>

Available on Rx<List<T>>, provided by the RxListExtensions extension

Remove element with error handling
tryRemove(Object? item) → RxResult<bool>

Available on Rx<Set<T>>, provided by the RxSetExtensions extension

Remove item with error handling
tryRemoveAll(Iterable<Object?> elements) → RxResult<void>

Available on Rx<Set<T>>, provided by the RxSetExtensions extension

Remove all items with error handling
tryRemoveAt(int index) → RxResult<T>

Available on Rx<List<T>>, provided by the RxListExtensions extension

Remove at index with validation
tryRemoveKey(Object? key) → RxResult<V?>

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Remove key with error handling
tryRemoveWhere(bool test(T element)) → RxResult<void>

Available on Rx<List<T>>, provided by the RxListExtensions extension

Remove where with error handling
tryRemoveWhere(bool predicate(K key, V value)) → RxResult<void>

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Remove where with error handling
tryRemoveWhere(bool test(T item)) → RxResult<void>

Available on Rx<Set<T>>, provided by the RxSetExtensions extension

Remove where with error handling
tryReplace(Pattern from, String replace) → RxResult<void>

Available on Rx<String>, provided by the RxStringExtensions extension

Replace with error handling
tryReplaceAll(T oldElement, T newElement) → RxResult<void>

Available on Rx<List<T>>, provided by the RxListExtensions extension

Replace all occurrences with error handling
tryReplaceRange(int start, int end, Iterable<T> replacements) → RxResult<void>

Available on Rx<List<T>>, provided by the RxListExtensions extension

Replace range with error handling
tryRequireValue([String? context]) → RxResult<T>

Available on Rx<T?>, provided by the RxNullableErrorHandling extension

Get non-null value or return result
tryRetainWhere(bool test(T element)) → RxResult<void>

Available on Rx<List<T>>, provided by the RxListExtensions extension

Retain where with error handling
tryRetainWhere(bool test(T item)) → RxResult<void>

Available on Rx<Set<T>>, provided by the RxSetExtensions extension

Retain where with error handling
trySetAt(int index, T element) → RxResult<void>

Available on Rx<List<T>>, provided by the RxListExtensions extension

Set element at index with validation
trySetFalse() → RxResult<void>

Available on Rx<bool>, provided by the RxBoolExtensions extension

Set to false with error handling
trySetKey(K key, V val) → RxResult<void>

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Set key-value with error handling
trySetTrue() → RxResult<void>

Available on Rx<bool>, provided by the RxBoolExtensions extension

Set to true with error handling
trySetValue(T newValue, {String? context}) → RxResult<void>

Available on Rx<T>, provided by the RxErrorHandling extension

Set value with error handling
tryShuffle([Random? random]) → RxResult<void>

Available on Rx<List<T>>, provided by the RxListExtensions extension

Shuffle list with error handling
trySort([int compare(T a, T b)?]) → RxResult<void>

Available on Rx<List<T>>, provided by the RxListExtensions extension

Sort list with error handling
tryToggle() → RxResult<void>

Available on Rx<bool>, provided by the RxBoolExtensions extension

Toggle with error handling
tryToLowerCase() → RxResult<void>

Available on Rx<String>, provided by the RxStringExtensions extension

Convert to lowercase with error handling
tryToUpperCase() → RxResult<void>

Available on Rx<String>, provided by the RxStringExtensions extension

Convert to uppercase with error handling
tryTrim() → RxResult<void>

Available on Rx<String>, provided by the RxStringExtensions extension

Trim with error handling
tryUpdate(T updater(T current), {String? context}) → RxResult<void>

Available on Rx<T>, provided by the RxErrorHandling extension

Update value with error handling
tryUpdate(K key, V update(V value), {V ifAbsent()?}) → RxResult<V>

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Update value with error handling
tryUpdateAll(V update(K key, V fallback)) → RxResult<void>

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Update all values with error handling
tryUpdateAt(int index, T element) → RxResult<void>

Available on Rx<List<T>>, provided by the RxListExtensions extension

Update element at index with validation
union(Set<T> other) → Set<T>

Available on Rx<Set<T>>, provided by the RxSetExtensions extension

update(T updater(T value)) → void
Update value using a function
override
updateAll(V update(K key, V fallback)) → void

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Update all values (convenience method)
updateFromAsync(Future<T> operation(T current), {String? context}) → Future<RxResult<void>>

Available on Rx<T>, provided by the RxAsyncErrorHandling extension

Update value from async operation
updateIfChanged(T newValue) → void
Update the value only if it's different (explicit equality check)
updateWithRetry(T updater(T current), {int? maxRetries, Duration? retryDelay, String? context}) → Future<RxResult<void>>

Available on Rx<T>, provided by the RxErrorHandling extension

Update value with retry logic
valueOr(T fallback) → T

Available on Rx<T>, provided by the RxErrorHandling extension

Get value or return fallback
valueOrElse(T fallback()) → T

Available on Rx<T>, provided by the RxErrorHandling extension

Get value or compute fallback
where(bool test(T item)) → Iterable<T>

Available on Rx<Set<T>>, provided by the RxSetExtensions extension

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

Available on Rx<List<T>>, provided by the RxListExtensions extension

Where operation that returns a spreadable Iterable (for use with ... operator)
where(bool predicate(T value)) → RxComputed<T?>

Available on Rx<T>, provided by the RxComputedExtensions extension

whereList(bool predicate(T)) → RxComputed<List<T>>

Available on Rx<List<T>>, provided by the RxListTransformations extension

Filter list reactively
whereNotNull() → RxComputed<T?>

Available on Rx<T?>, provided by the RxNullableTransformations extension

Filter out null values
whereToRx(bool test(T element)) → Rx<List<T>>

Available on Rx<List<T>>, provided by the RxListExtensions extension

Where operation that returns a new reactive list
withDefault(T defaultValue) → RxComputed<T>

Available on Rx<T?>, provided by the RxNullableTransformations extension

Provide a default value for null

Operators

operator ==(Object other) → bool
The equality operator.
inherited
operator [](int index) → T

Available on Rx<List<T>>, provided by the RxListExtensions extension

Safe list access operator with tracking
operator [](Object? key) → V?

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Safe access operations
operator []=(int index, T element) → void

Available on Rx<List<T>>, provided by the RxListExtensions extension

Safe list assignment operator
operator []=(K key, V val) → void

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Set key-value (convenience method)