ReactiveList<T> extension

Extension for Reactive<List<T>> providing common list utilities.

on

Properties

isEmpty bool

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

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

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

Returns true if the list is not empty.
no setter
length int

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

Returns the length of the list.
no setter

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.
clear() → void

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

Clears the list.
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.
remove(T item) → void

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

Removes item from the list.
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.
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.