ListObservable<T> class

A class that represents the ListObservable functionality.

Inheritance

Constructors

ListObservable.new([List<T>? initial, EqualityFunction<List<T>>? equals, ErrorCallback? onError])

Properties

first → T?
no setter
hashCode int
The hash code for this object.
no setterinherited
isDisposed bool
Whether this object has been disposed.
no setterinherited
isEmpty bool
no setter
isNotEmpty bool
no setter
last → T?
no setter
length int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value List<T>
value method.
getter/setter pairinherited

Methods

add(T item) → void
add method.
addAll(Iterable<T> items) → void
addAll method.
addDisposeCallback(VoidCallback callback) → void
Add a callback to be executed during disposal.
inherited
addListener(VoidCallback listener) → void
addListener method.
inherited
addSubscription(StreamSubscription subscription) → void
Add a stream subscription to be cancelled during disposal.
inherited
clear() → void
clear method.
contains(T item) bool
dispose() → void
dispose method.
override
indexOf(T item) int
insert(int index, T item) → void
insert method.
lastIndexOf(T item) int
map<R>(R mapper(T)) ListObservable<R>
mapR> method.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read() List<T>
read method.
inherited
remove(T item) → void
remove method.
removeAt(int index) → void
removeAt method.
removeListener(VoidCallback listener) → void
removeListener method.
inherited
removeWhere(bool predicate(T)) → void
removeWhere method.
replaceAll(List<T> newItems) → void
replaceAll method.
setDebounceTimer(Timer timer) → void
Set or update the debounce timer.
inherited
setValueDebounced(List<T> newValue, Duration delay) → void
setValueDebounced method.
inherited
sort([int compare(T, T)?]) → void
sort method.
sublist(int start, [int? end]) List<T>
throwIfDisposed([String? operation]) → void
Throw if this object has been disposed.
inherited
toList() List<T>
toString() String
A string representation of this object.
inherited
updateAt(int index, T item) → void
updateAt method.
watch() List<T>
inherited
watchFirst() → T?
watchFirst method.
watchIsEmpty() bool
watchIsEmpty method.
watchIsNotEmpty() bool
watchIsNotEmpty method.
watchLast() → T?
watchLast method.
watchLength() int
watchLength method.
where(bool predicate(T)) ListObservable<T>
where method.

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](int index) → T?
[] method.
operator []=(int index, T item) → void