ReactiveList<T> extension
Extension for Reactive<List<T>> providing common list utilities.
Properties
- isEmpty → bool
-
Available on Reactive<
Returns true if the list is empty.List< , provided by the ReactiveList extensionT> >no setter - isNotEmpty → bool
-
Available on Reactive<
Returns true if the list is not empty.List< , provided by the ReactiveList extensionT> >no setter - length → int
-
Available on Reactive<
Returns the length of the list.List< , provided by the ReactiveList extensionT> >no setter
Methods
-
add(
T item) → void -
Available on Reactive<
AddsList< , provided by the ReactiveList extensionT> >itemto the end of the list. -
addAll(
Iterable< T> items) → void -
Available on Reactive<
Adds all items fromList< , provided by the ReactiveList extensionT> >itemsto the end of the list. -
addToSet(
T item) → void -
Available on Reactive<
AddsList< , provided by the ReactiveList extensionT> >itemto the list only if it does not already exist. -
clear(
) → void -
Available on Reactive<
Clears the list.List< , provided by the ReactiveList extensionT> > -
firstWhereOrNull(
bool test(T)) → T? -
Available on Reactive<
Returns the first element that satisfiesList< , provided by the ReactiveList extensionT> >test, or null if none found. -
remove(
T item) → void -
Available on Reactive<
RemovesList< , provided by the ReactiveList extensionT> >itemfrom the list. -
removeAll(
T item) → void -
Available on Reactive<
Removes all occurrences ofList< , provided by the ReactiveList extensionT> >item. -
removeWhere(
bool test(T)) → void -
Available on Reactive<
Removes all elements that matchList< , provided by the ReactiveList extensionT> >test. -
where(
bool test(T)) → List< T> -
Available on Reactive<
Returns a filtered list containing elements that satisfyList< , provided by the ReactiveList extensionT> >test.