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);
Properties
- isEmpty → bool
-
Available on RxState<
Whether the list is empty.List< , provided by the RxListToState extensionT> >no setter - isNotEmpty → bool
-
Available on RxState<
Whether the list is not empty.List< , provided by the RxListToState extensionT> >no setter - length → int
-
Available on RxState<
The number of elements in the list.List< , provided by the RxListToState extensionT> >no setter
Methods
-
add(
T element) → void -
Available on RxState<
Adds anList< , provided by the RxListToState extensionT> >elementto the list and triggers a refresh. -
contains(
T element) → bool -
Available on RxState<
Returns whether the list contains the givenList< , provided by the RxListToState extensionT> >element. -
remove(
T element) → void -
Available on RxState<
Removes anList< , provided by the RxListToState extensionT> >elementfrom the list and triggers a refresh.