RxListToState<T> extension

============================== List Enhancements for RxState

Provides additional utility methods for RxState<List<T>>.

These helpers allow you to mutate the list while automatically triggering UI updates.

Example:

final items = <int>[].obs;
items.add(1);
items.remove(1);
on

Properties

isEmpty bool

Available on RxState<List<T>>, provided by the RxListToState extension

Whether the list is empty.
no setter
isNotEmpty bool

Available on RxState<List<T>>, provided by the RxListToState extension

Whether the list is not empty.
no setter
length int

Available on RxState<List<T>>, provided by the RxListToState extension

The number of elements in the list.
no setter

Methods

add(T element) → void

Available on RxState<List<T>>, provided by the RxListToState extension

Adds an element to the list and triggers a refresh.
contains(T element) bool

Available on RxState<List<T>>, provided by the RxListToState extension

Returns whether the list contains the given element.
remove(T element) → void

Available on RxState<List<T>>, provided by the RxListToState extension

Removes an element from the list and triggers a refresh.