SignalList<E> class
Copy of dart:core List
But this list notify any changes
- Inheritance
- Implemented types
-
- ListBase<
E>
- ListBase<
- Available extensions
Constructors
-
SignalList.new(List<
E> list) - SignalList.empty({bool growable = false})
-
see dart:core documentation
factory
- SignalList.filled(int length, E fill, {bool growable = false})
-
see dart:core documentation
factory
- SignalList.from(Iterable elements, {bool growable = true})
-
see dart:core documentation
factory
- SignalList.generate(int length, E generator(int index), {bool growable = true})
-
see dart:core documentation
factory
-
SignalList.of(Iterable<
E> elements, {bool growable = true}) -
see dart:core documentation
factory
Properties
- first ↔ E
-
see dart:core documentation
getter/setter pairoverride
- firstOrNull → T?
-
Available on Iterable<
The first element of this iterator, orT> , provided by the IterableExtensions extensionnull
if the iterable is empty.no setter - hashCode → int
-
The hash code for this object.
no setteroverride
- hasSlots → bool
-
Has slot
no setterinherited
-
indexed
→ Iterable<
(int, T)> -
Available on Iterable<
Pairs of elements of the indices and elements of this iterable.T> , provided by the IterableExtensions extensionno setter - isEmpty → bool
-
see dart:core documentation
no setteroverride
- isNotEmpty → bool
-
see dart:core documentation
no setteroverride
-
iterator
→ Iterator<
E> -
A new
Iterator
that allows iterating the elements of thisIterable
.no setteroverride - last ↔ E
-
see dart:core documentation
getter/setter pairoverride
- lastOrNull → T?
-
Available on Iterable<
The last element of this iterable, orT> , provided by the IterableExtensions extensionnull
if the iterable is empty.no setter - length ↔ int
-
see dart:core documentation
getter/setter pairoverride
- multiSignal → MultiSignal
-
Available on List<
T> , provided by the MultipleListenerOnList extensionno setter -
nonNulls
→ Iterable<
T> -
Available on Iterable<
The non-T?> , provided by the NullableIterableExtensions extensionnull
elements of this iterable.no setter -
reversed
→ Iterable<
E> -
An Iterable of the objects in this list in reverse order.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
signalList
→ SignalList<
T> -
Available on List<
Listen all changes and notify all changesT> , provided by the ListenableList extensionno setter -
signals
→ List<
Signal< T> > -
Available on List<
Listen all changes(exclude add and remove operations)T> , provided by the ListenableList extensionno setter - single → E
-
Checks that this iterable has only one element, and returns that element.
no setteroverride
- singleOrNull → T?
-
Available on Iterable<
The single element of this iterator, orT> , provided by the IterableExtensions extensionnull
.no setter -
slots
→ Set<
Slot> -
Slots
finalinherited
-
toJS
→ JSArray<
T> -
Available on List<
Converts this List to a JSArray by either casting, unwrapping, or cloning the List.T> , provided by the ListToJSArray extensionno setter -
toJSProxyOrRef
→ JSArray<
T> -
Available on List<
Converts this List to a JSArray by either casting, unwrapping, or proxying the List.T> , provided by the ListToJSArray extensionno setter -
value
↔ List<
E> -
Your value.
If you use as a setter notify listeners
getter/setter pairinherited
-
wait
→ Future<
List< T> > -
Available on Iterable<
Waits for futures in parallel.Future< , provided by the FutureIterable extensionT> >no setter
Methods
-
add(
E val) → void -
see dart:core documentation
override
-
addAll(
Iterable< E> iterable) → void -
see dart:core documentation
override
-
addSlot(
Slot< List< slot) → voidE> > -
Add new slot
inherited
-
any(
bool test(E element)) → bool -
Checks whether any element of this iterable satisfies
test
.override -
asMap(
) → Map< int, E> -
An unmodifiable Map view of this list.
override
-
asNameMap(
) → Map< String, T> -
Available on Iterable<
Creates a map from the names of enum values to the values.T> , provided by the EnumByName extension -
byName(
String name) → T -
Available on Iterable<
Finds the enum value in this list with nameT> , provided by the EnumByName extensionname
. -
cast<
R> () → List< R> -
Returns a view of this list as a list of
R
instances.override -
clear(
) → void -
see dart:core documentation
override
-
clearSlots(
) → void -
Clear all slots
inherited
-
combineWith(
List< Signal> signals) → Signal -
Listen any changes this and
notifiers
any changesinherited -
contains(
Object? element) → bool -
Whether the collection contains an element equal to
element
.override -
convert<
T> (T map(List< E> )) → Signal<T> -
Map signal
inherited
-
elementAt(
int index) → E -
Returns the
index
th element.override -
elementAtOrNull(
int index) → T? -
Available on Iterable<
The element at positionT> , provided by the IterableExtensions extensionindex
of this iterable, ornull
. -
emit(
) → void -
Sign to all slots
inherited
-
every(
bool test(E element)) → bool -
Checks whether every element of this iterable satisfies
test
.override -
expand<
T> (Iterable< T> f(E element)) → Iterable<T> -
Expands each element of this Iterable into zero or more elements.
override
-
fillRange(
int start, int end, [E? fillValue]) → void -
see dart:core documentation
override
-
firstWhere(
bool test(E element), {E orElse()?}) → E -
The first element that satisfies the given predicate
test
.override -
fold<
T> (T initialValue, T combine(T previousValue, E element)) → T -
Reduces a collection to a single value by iteratively combining each
element of the collection with an existing value
override
-
followedBy(
Iterable< E> other) → Iterable<E> -
Creates the lazy concatenation of this iterable and
other
.override -
forEach(
void action(E element)) → void -
Invokes
action
on each element of this iterable in iteration order.override -
getRange(
int start, int end) → Iterable< E> -
Creates an Iterable that iterates over a range of elements.
override
-
indexOf(
covariant E element, [int start = 0]) → int -
The first index of
element
in this list.override -
indexWhere(
bool test(E element), [int start = 0]) → int -
The first index in the list that satisfies the provided
test
.override -
insert(
int index, E element) → void -
see dart:core documentation
override
-
insertAll(
int index, Iterable< E> iterable) → void -
see dart:core documentation
override
-
join(
[String separator = '']) → String -
Converts each element to a String and concatenates the strings.
override
-
lastIndexOf(
covariant E element, [int? start]) → int -
The last index of
element
in this list.override -
lastIndexWhere(
bool test(E element), [int? start]) → int -
The last index in the list that satisfies the provided
test
.override -
lastWhere(
bool test(E element), {E orElse()?}) → E -
The last element that satisfies the given predicate
test
.override -
map<
T> (T f(E e)) → List< T> -
see dart:core documentation
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reduce(
E combine(E previousValue, E element)) → E -
Reduces a collection to a single value by iteratively combining elements
of the collection using the provided function.
override
-
remove(
Object? val) → bool -
see dart:core documentation
override
-
removeAt(
int index) → E -
see dart:core documentation
override
-
removeLast(
) → E -
see dart:core documentation
override
-
removeRange(
int start, int end) → void -
see dart:core documentation
override
-
removeSlot(
Slot< List< slot) → voidE> > -
Remove slot
inherited
-
removeWhere(
bool test(E element)) → void -
see dart:core documentation
override
-
replaceRange(
int start, int end, Iterable< E> replacements) → void -
see dart:core documentation
override
-
retainWhere(
bool test(E element)) → void -
see dart:core documentation
override
-
setAll(
int index, Iterable< E> iterable) → void -
see dart:core documentation
override
-
setRange(
int start, int end, Iterable< E> iterable, [int skipCount = 0]) → void -
see dart:core documentation
override
-
shuffle(
[Random? random]) → void -
see dart:core documentation
override
-
singleWhere(
bool test(E element), {E orElse()?}) → E -
The single element that satisfies
test
.override -
skip(
int count) → Iterable< E> -
Creates an Iterable that provides all but the first
count
elements.override -
skipWhile(
bool test(E element)) → Iterable< E> -
Creates an
Iterable
that skips leading elements whiletest
is satisfied.override -
sort(
[int compare(E a, E b)?]) → void -
Sorts this list according to the order specified by the
compare
function.override -
sublist(
int start, [int? end]) → SignalList< E> -
Returns a new list containing the elements between
start
andend
.override -
take(
int count) → Iterable< E> -
Creates a lazy iterable of the
count
first elements of this iterable.override -
takeWhile(
bool test(E element)) → Iterable< E> -
Creates a lazy iterable of the leading elements satisfying
test
.override -
toList(
{bool growable = true}) → List< E> -
Creates a List containing the elements of this Iterable.
override
-
toSet(
) → Set< E> -
Creates a Set containing the same elements as this iterable.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
where(
bool test(E element)) → Iterable< E> -
Creates a new lazy Iterable with all elements that satisfy the
predicate
test
.override -
whereType<
T> () → Iterable< T> -
Creates a new lazy Iterable with all elements that have type
T
.override
Operators
-
operator +(
List< E> other) → List<E> -
see dart:core documentation
override
-
operator ==(
Object other) → bool -
The equality operator.
override
-
operator [](
int index) → E -
see dart:core documentation
override
-
operator []=(
int index, E val) → void -
see dart:core documentation
override
Static Methods
-
copyRange<
T> (SignalList< T> target, int at, List<T> source, [int? start, int? end]) → void -
Copy source items in given range to target
override
-
writeIterable<
T> (SignalList< T> target, int at, Iterable<T> source) → void -
Write to target from source in given range
override