IterableSignalMixin<E, T extends Iterable<E> > mixin
Mixin to upgrade an iterable signal with reactive properties
- Superclass constraints
- Signal<
T>
- Signal<
- Implemented types
-
- Iterable<
E>
- Iterable<
- Available extensions
- DHUCollectionsExtensions
- DHUCollectionsExtensionsNS
- DHUFutureIterableExtension
- DHUIterableDoubleExtensionsNS
- DHUIterableIntExtensionsNS
- DHUIterableNumExtensionsNS
- DHUListDoubleStats
- DHUListIntStats
- DHUListNumStats
- EnumByName
- FutureIterable
- IterableConversionX
- IterableExtensions
- JsonIterableX
- ListExtensions
- ListSignalExtension
- MyfindFirstWhereOrNullExt
- NullableIterableConversionX
- NullableIterableExtensions
- ReadonlyIterableSignalExtension
- ReadonlyListSignalExtension
- ReadonlySetSignalExtension
- SetSignalExtension
- SignalIterableExtensions
- SignalIterableUtils
Properties
-
$
→ Signal<
Iterable< E> > -
Available on Iterable<
Return a signal from a Iterable valueE> , provided by the SignalIterableExtensions extensionno setter - autoDispose ↔ bool
-
Throws and error if read after dispose and can be
disposed on last unsubscribe.
getter/setter pairinherited
- debugLabel → String?
-
Debug label for Debug Mode
finalinherited
- disposed ↔ bool
-
Check if the effect is disposed
getter/setter pairinherited
- encodeWithIndent → String
-
Available on Iterable<
Convenience getter mirroring the Map variant for parity.T> , provided by the JsonIterableX extensionno setter - equalityCheck ↔ bool Function(T a, T b)
-
Optional method to check if to values are the same
getter/setter pairinherited
- first ← E
-
Available on Signal<
List< , provided by the ListSignalExtension extensionE> >no getter - first → E
-
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> >no setter - first → E
-
The first element.
no setteroverride
- firstOrNull → T?
-
Available on Iterable<
The first element of this iterator, orT> , provided by the IterableExtensions extensionnullif the iterable is empty.no setter - globalId → int
-
finalinherited
- halfLength → int
-
Available on Iterable<
Returns half the length (floored).E> , provided by the DHUCollectionsExtensions extensionno setter - hashCode → int
-
The hash code for this object.
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 - internalValue → T
-
no setterinherited
- isEmpty → bool
-
Whether this collection has no elements.
no setteroverride
- isEmpty → bool
-
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> >no setter - isEmptyOrNull → bool
-
Available on Iterable<
ReturnsE> ?, provided by the DHUCollectionsExtensionsNS extensiontrueif this nullable iterable is either null or empty.no setter - isInitialized → bool
-
Check if a signal value is set (does not subscribe)
no setterinherited
- isNotEmpty → bool
-
Whether this collection has at least one element.
no setteroverride
- isNotEmpty → bool
-
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> >no setter - isNotEmptyOrNull → bool
-
Available on Iterable<
ReturnsE> ?, provided by the DHUCollectionsExtensionsNS extensionfalseif this nullable iterable is either null or empty.no setter -
iterator
→ Iterator<
E> -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> >no setter -
iterator
→ Iterator<
E> -
A new
Iteratorthat allows iterating the elements of thisIterable.no setteroverride - last → E
-
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> >no setter - last → E
-
The last element.
no setteroverride
- last → E
-
Available on ReadonlySignal<
List< , provided by the ReadonlyListSignalExtension extensionE> >no setter - last ← E
-
Available on Signal<
List< , provided by the ListSignalExtension extensionE> >no getter - lastOrNull → T?
-
Available on Iterable<
The last element of this iterable, orT> , provided by the IterableExtensions extensionnullif the iterable is empty.no setter - length → int
-
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> >no setter - length → int
-
The number of elements in this Iterable.
no setteroverride
- length ← int
-
Available on Signal<
List< , provided by the ListSignalExtension extensionE> >no getter - mean → double
-
Available on Iterable<
Calculates the mean (average) of the doubles in the iterable.double> , provided by the DHUListDoubleStats extensionno setter - mean → int
-
Available on Iterable<
Calculates the mean (average) of the integers in the iterable.int> , provided by the DHUListIntStats extensionno setter - mean → num
-
Available on Iterable<
Calculates the mean (average) of the numbers in the iterable.num> , provided by the DHUListNumStats extensionno setter - median → double
-
Available on Iterable<
Determines the median value of the doubles in the iterable.double> , provided by the DHUListDoubleStats extensionno setter - median → int
-
Available on Iterable<
Determines the median value of the integers in the iterable.int> , provided by the DHUListIntStats extensionno setter - median → num
-
Available on Iterable<
Determines the median value of the numbers in the iterable.num> , provided by the DHUListNumStats extensionno setter -
mode
→ List<
double> -
Available on Iterable<
Finds the mode(s) of the doubles in the iterable.double> , provided by the DHUListDoubleStats extensionno setter -
mode
→ List<
int> -
Available on Iterable<
Finds the mode(s) of the integers in the iterable.int> , provided by the DHUListIntStats extensionno setter -
mode
→ List<
num> -
Available on Iterable<
Finds the mode(s) of the numbers in the iterable.num> , provided by the DHUListNumStats extensionno setter -
nonNulls
→ Iterable<
T> -
Available on Iterable<
The non-T?> , provided by the NullableIterableExtensions extensionnullelements of this iterable.no setter -
reversed
→ Iterable<
E> -
Available on ReadonlySignal<
List< , provided by the ReadonlyListSignalExtension extensionE> >no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- single → E
-
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> >no 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 - standardDeviation → double
-
Available on Iterable<
Calculates the standard deviation of the doubles in the iterable.double> , provided by the DHUListDoubleStats extensionno setter - standardDeviation → int
-
Available on Iterable<
Calculates the standard deviation of the integers in the iterable.int> , provided by the DHUListIntStats extensionno setter - standardDeviation → num
-
Available on Iterable<
Calculates the standard deviation of the numbers in the iterable.num> , provided by the DHUListNumStats extensionno setter - total → num
-
Available on Iterable<
Calculates the total sum of the numbers in the iterable.num?> ?, provided by the DHUIterableNumExtensionsNS extensionno setter - total → int
-
Available on Iterable<
Calculates the total sum of the integers in the iterable.int?> ?, provided by the DHUIterableIntExtensionsNS extensionno setter - total → double
-
Available on Iterable<
Calculates the total sum of the doubles in the iterable.double?> ?, provided by the DHUIterableDoubleExtensionsNS extensionno setter - value ↔ T
-
Compute the current value
getter/setter pairinherited
- variance → num
-
Available on Iterable<
Computes the variance of the numbers in the iterable.num> , provided by the DHUListNumStats extensionno setter - variance → int
-
Available on Iterable<
Computes the variance of the integers in the iterable.int> , provided by the DHUListIntStats extensionno setter - variance → double
-
Available on Iterable<
Computes the variance of the doubles in the iterable.double> , provided by the DHUListDoubleStats extensionno setter - version ↔ int
-
Version numbers should always be >= 0, because the special value -1 is used
by Nodes to signify potentially unused but recyclable nodes.
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 value) → bool -
Available on Signal<
Set< , provided by the SetSignalExtension extensionE> > -
add(
E value) → void -
Available on Signal<
List< , provided by the ListSignalExtension extensionE> > -
addAll(
Iterable< E> iterable) → void -
Available on Signal<
List< , provided by the ListSignalExtension extensionE> > -
addAll(
Iterable< E> elements) → void -
Available on Signal<
Set< , provided by the SetSignalExtension extensionE> > -
afterCreate(
T val) → void -
Internal hook for after a signal is created
inherited
-
any(
bool test(E element)) → bool -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
any(
bool test(E element)) → bool -
Checks whether any element of this iterable satisfies
test.override -
asMap(
) → Map< int, E> -
Available on ReadonlySignal<
List< , provided by the ReadonlyListSignalExtension extensionE> > -
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 -
associate<
K, V> (K keySelector(E), [V valueSelector(E)?]) → Map< K, V> -
Available on Iterable<
Converts the iterable to a map usingE> , provided by the DHUCollectionsExtensions extensionkeySelectorand optionalvalueSelector. -
averageBy(
num selector(T)) → double? -
Available on Iterable<
Example:T> ?, provided by the ListExtensions extension -
beforeUpdate(
T val) → void -
Internal hook for after a signal is updated
inherited
-
byName(
String name) → T -
Available on Iterable<
Finds the enum value in this list with nameT> , provided by the EnumByName extensionname. -
call(
) → T -
Return the value when invoked
inherited
-
cast<
R> () → Iterable< R> -
A view of this iterable as an iterable of
Rinstances.override -
cast<
R> () → List< R> -
Available on ReadonlySignal<
List< , provided by the ReadonlyListSignalExtension extensionE> > -
cast<
R> () → Iterable< R> -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
cast<
R> () → Set< R> -
Available on ReadonlySignal<
Set< , provided by the ReadonlySetSignalExtension extensionE> > -
chunks(
int size) → List< List< E> > -
Available on Iterable<
Splits the iterable into chunks of sizeE> , provided by the DHUCollectionsExtensions extensionsize. -
clear(
) → void -
Available on Signal<
List< , provided by the ListSignalExtension extensionE> > -
clear(
) → void -
Available on Signal<
Set< , provided by the SetSignalExtension extensionE> > -
concatWithMultipleList(
List< Iterable< iterables) → List<E> >E> -
Available on Iterable<
Returns a list that concatenates this iterable withE> , provided by the DHUCollectionsExtensions extensioniterables. -
concatWithSingleList(
Iterable< E> iterable) → List<E> -
Available on Iterable<
Returns a list that concatenates this iterable withE> , provided by the DHUCollectionsExtensions extensioniterable. -
contains(
Object? value) → bool -
Whether the collection contains an element equal to
element.override -
contains(
Object? value) → bool -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
containsAll(
Iterable< E> collection) → bool -
Available on Iterable<
Checks if all elements in the specifiedE> , provided by the DHUCollectionsExtensions extensioncollectionare contained in this collection. -
containsAll(
Iterable< Object?> other) → bool -
Available on ReadonlySignal<
Set< , provided by the ReadonlySetSignalExtension extensionE> > -
convertAll<
T> () → List< T> -
Available on Iterable<
Converts every element in this iterable toE> , provided by the IterableConversionX extensionT. -
difference(
Set< Object?> other) → Set<E> -
Available on ReadonlySignal<
Set< , provided by the ReadonlySetSignalExtension extensionE> > -
dispose(
) → void -
Dispose the signal
inherited
-
distinctBy<
R> (R keySelector(E), {bool equals(R a, R b)?, int hashCode(R key)?, bool isValidKey(R key)?}) → List< E> -
Available on Iterable<
Returns a new list containing the first occurrence of each distinct element as determined by the key returned fromE> , provided by the DHUCollectionsExtensions extensionkeySelector. -
drop(
int n) → List< E> -
Available on Iterable<
Returns a list containing all elements except the firstE> , provided by the DHUCollectionsExtensions extensionnelements. -
elementAt(
int index) → E -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
elementAt(
int index) → E -
Returns the
indexth element.override -
elementAtOrNull(
int index) → T? -
Available on Iterable<
The element at positionT> , provided by the IterableExtensions extensionindexof this iterable, ornull. -
every(
bool test(E element)) → bool -
Checks whether every element of this iterable satisfies
test.override -
every(
bool test(E element)) → bool -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
expand<
R> (Iterable< R> toElements(E element)) → Iterable<R> -
Available on ReadonlySignal<
List< , provided by the ReadonlyListSignalExtension extensionE> > -
expand<
R> (Iterable< R> toElements(E element)) → Iterable<R> -
Expands each element of this Iterable into zero or more elements.
override
-
expand<
R> (Iterable< R> toElements(E element)) → Iterable<R> -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
fillRange(
int start, int end, [E? fillValue]) → void -
Available on Signal<
List< , provided by the ListSignalExtension extensionE> > -
filter(
Predicate< E> test) → List<E> -
Available on Iterable<
Returns a list containing elements that satisfyE> , provided by the DHUCollectionsExtensions extensiontest. -
filterNot(
Predicate< E> test) → List<E> -
Available on Iterable<
Returns a list containing elements that do not satisfyE> , provided by the DHUCollectionsExtensions extensiontest. -
find(
Predicate< E> predicate) → E? -
Available on Iterable<
Returns the first element matchingE> , provided by the DHUCollectionsExtensions extensionpredicate, ornullif element was not found. -
findFirstWhereOrNull(
bool test(T element)) → T? -
Available on Iterable<
Finds the first element satisfying the provided condition, orT> , provided by the MyfindFirstWhereOrNullExt extensionnullif none is found. -
firstHalf(
) → List< E> -
Available on Iterable<
Returns the first half of the iterable.E> , provided by the DHUCollectionsExtensions extension -
firstOrDefault(
E defaultValue) → E -
Available on Iterable<
Returns the first element orE> ?, provided by the DHUCollectionsExtensionsNS extensiondefaultValuewhen null or empty. -
firstWhere(
bool test(E element), {E orElse()?}) → E -
The first element that satisfies the given predicate
test.override -
firstWhere(
bool test(E element), {E orElse()?}) → E -
Available on ReadonlySignal<
List< , provided by the ReadonlyListSignalExtension extensionE> > -
firstWhere(
bool test(E element), {E orElse()?}) → E -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
fold<
R> (R initialValue, R combine(R previousValue, E element)) → R -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
fold<
R> (R initialValue, R combine(R previousValue, E element)) → R -
Reduces a collection to a single value by iteratively combining each
element of the collection with an existing value
override
-
fold<
R> (R initialValue, R combine(R previousValue, E element)) → R -
Available on ReadonlySignal<
List< , provided by the ReadonlyListSignalExtension extensionE> > -
followedBy(
Iterable< E> other) → Iterable<E> -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
followedBy(
Iterable< E> other) → Iterable<E> -
Available on ReadonlySignal<
List< , provided by the ReadonlyListSignalExtension extensionE> > -
followedBy(
Iterable< E> other) → Iterable<E> -
Creates the lazy concatenation of this iterable and
other.override -
forEach(
void action(E element)) → void -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
forEach(
void action(E element)) → void -
Invokes
actionon each element of this iterable in iteration order.override -
forEachIndexed(
void action(T element, int index)) → void -
Available on Iterable<
Generate forEach but gives index for each elementT> ?, provided by the ListExtensions extension -
get(
) → T -
Helper method to get the current value
inherited
-
getBigInt(
int index, {dynamic innerMapKey, int? innerIndex, BigInt? defaultValue, ElementConverter< BigInt> ? converter}) → BigInt -
Available on Iterable<
Converts the element atE> , provided by the IterableConversionX extensionindexto a BigInt. -
getBool(
int index, {dynamic innerMapKey, int? innerIndex, bool? defaultValue, ElementConverter< bool> ? converter}) → bool -
Available on Iterable<
Converts the element atE> , provided by the IterableConversionX extensionindexto a bool. -
getDateTime(
int index, {dynamic innerMapKey, int? innerIndex, String? format, String? locale, bool autoDetectFormat = false, bool useCurrentLocale = false, bool utc = false, DateTime? defaultValue, ElementConverter< DateTime> ? converter}) → DateTime -
Available on Iterable<
Converts the element atE> , provided by the IterableConversionX extensionindexto a DateTime. -
getDouble(
int index, {dynamic innerMapKey, int? innerIndex, String? format, String? locale, double? defaultValue, ElementConverter< double> ? converter}) → double -
Available on Iterable<
Converts the element atE> , provided by the IterableConversionX extensionindexto a double. -
getEnum<
T extends Enum> (int index, {required T parser(dynamic), dynamic innerMapKey, int? innerIndex, T? defaultValue, Map< String, dynamic> ? debugInfo}) → T -
Available on Iterable<
Converts the element atE> , provided by the IterableConversionX extensionindexto an enum value usingparser. -
getInt(
int index, {dynamic innerMapKey, int? innerIndex, String? format, String? locale, int? defaultValue, ElementConverter< int> ? converter}) → int -
Available on Iterable<
Converts the element atE> , provided by the IterableConversionX extensionindexto an int. -
getList<
T> (int index, {dynamic innerMapKey, int? innerIndex, List< T> ? defaultValue, ElementConverter<T> ? elementConverter}) → List<T> -
Available on Iterable<
Converts the element atE> , provided by the IterableConversionX extensionindexto a List ofT. -
getMap<
K2, V2> (int index, {dynamic innerMapKey, int? innerIndex, Map< K2, V2> ? defaultValue, ElementConverter<K2> ? keyConverter, ElementConverter<V2> ? valueConverter}) → Map<K2, V2> -
Available on Iterable<
Converts the element atE> , provided by the IterableConversionX extensionindexto a Map ofK2toV2. -
getNum(
int index, {dynamic innerMapKey, int? innerIndex, String? format, String? locale, num? defaultValue, ElementConverter< num> ? converter}) → num -
Available on Iterable<
Converts the element atE> , provided by the IterableConversionX extensionindexto a num. -
getRandom(
[int? seed]) → E -
Available on Iterable<
Returns a random element.E> , provided by the DHUCollectionsExtensions extension -
getRange(
int start, int end) → Iterable< E> -
Available on ReadonlySignal<
List< , provided by the ReadonlyListSignalExtension extensionE> > -
getSet<
T> (int index, {dynamic innerMapKey, int? innerIndex, Set< T> ? defaultValue, ElementConverter<T> ? elementConverter}) → Set<T> -
Available on Iterable<
Converts the element atE> , provided by the IterableConversionX extensionindexto a Set ofT. -
getString(
int index, {dynamic innerMapKey, int? innerIndex, String? defaultValue, ElementConverter< String> ? converter}) → String -
Available on Iterable<
Converts the element atE> , provided by the IterableConversionX extensionindexto a String. -
getUri(
int index, {dynamic innerMapKey, int? innerIndex, Uri? defaultValue, ElementConverter< Uri> ? converter}) → Uri -
Available on Iterable<
Converts the element atE> , provided by the IterableConversionX extensionindexto a Uri. -
indexOf(
E element, [int start = 0]) → int -
Available on ReadonlySignal<
List< , provided by the ReadonlyListSignalExtension extensionE> > -
indexWhere(
bool test(E element), [int start = 0]) → int -
Available on ReadonlySignal<
List< , provided by the ReadonlyListSignalExtension extensionE> > -
insert(
int index, E element) → void -
Available on Signal<
List< , provided by the ListSignalExtension extensionE> > -
insertAll(
int index, Iterable< E> iterable) → void -
Available on Signal<
List< , provided by the ListSignalExtension extensionE> > -
internalRefresh(
) → bool -
inherited
-
intersect(
Iterable other, {ElementConverter< E> ? converter}) → Set<E> -
Available on Iterable<
Returns a union-like set combining this iterable andE> , provided by the IterableConversionX extensionother. -
intersection(
Set< Object?> other) → Set<E> -
Available on ReadonlySignal<
Set< , provided by the ReadonlySetSignalExtension extensionE> > -
intersperse(
E element) → Iterable< E> -
Available on Iterable<
InsertsE> , provided by the DHUCollectionsExtensions extensionelementbetween every element in the iterable. -
isEqual(
Iterable< E> ? other) → bool -
Available on Iterable<
Compares two lists for element-by-element equality.E> ?, provided by the DHUCollectionsExtensionsNS extension -
isPrimitive(
) → bool -
Available on Iterable<
ReturnsE> ?, provided by the DHUCollectionsExtensionsNS extensiontruewhen every element is a primitive value. -
join(
[String separator = ""]) → String -
Converts each element to a String and concatenates the strings.
override
-
join(
[String separator = ""]) → String -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
lastIndexOf(
E element, [int? start]) → int -
Available on ReadonlySignal<
List< , provided by the ReadonlyListSignalExtension extensionE> > -
lastIndexWhere(
bool test(E element), [int? start]) → int -
Available on ReadonlySignal<
List< , provided by the ReadonlyListSignalExtension extensionE> > -
lastOrDefault(
E defaultValue) → E? -
Available on Iterable<
Returns the last element orE> ?, provided by the DHUCollectionsExtensionsNS extensiondefaultValuewhen null or empty. -
lastWhere(
bool test(E element), {E orElse()?}) → E -
The last element that satisfies the given predicate
test.override -
lastWhere(
bool test(E element), {E orElse()?}) → E -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
lookup(
Object? object) → E? -
Available on ReadonlySignal<
Set< , provided by the ReadonlySetSignalExtension extensionE> > -
map<
R> (R toElement(E e)) → Iterable< R> -
The current elements of this iterable modified by
toElement.override -
map<
R> (R toElement(E e)) → Iterable< R> -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
mapConcurrent<
R> (Future< R> action(E item), {int parallelism = 1}) → Future<List< R> > -
Available on Iterable<
ExecutesE> , provided by the DHUCollectionsExtensions extensionactionon each element with at mostparallelismconcurrent tasks. -
mapIndexedList<
R> (R mapper(int index, E element), {ElementConverter< R> ? converter}) → List<R> -
Available on Iterable<
Maps elements with their index and eagerly materializes the result into a List.E> , provided by the IterableConversionX extension -
mapList<
R> (R mapper(E e), {ElementConverter< R> ? converter}) → List<R> -
Available on Iterable<
Maps the elements and eagerly materializes them into a List using convert_object.E> , provided by the IterableConversionX extension -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
of(
int index) → E? -
Available on Iterable<
Returns the element atE> ?, provided by the DHUCollectionsExtensionsNS extensionindexornullif out of bounds or null. -
onDispose(
void cleanup()) → void Function() -
Add a cleanup function to be called when the signal is disposed
inherited
-
orEmpty(
) → Iterable< E> -
Available on Iterable<
Returns this iterable (as is) if it is non-null; otherwise, returns an empty iterable.E> , provided by the DHUCollectionsExtensions extension -
overrideWith(
T val) → Signal< T> -
Override the current signal with a new value as if it was created with it
inherited
-
pairwise(
) → List< (E, E)> -
Available on Iterable<
Returns consecutive pairs from the iterable.E> , provided by the DHUCollectionsExtensions extension -
partition(
bool predicate(E)) → (List< E> , List<E> ) -
Available on Iterable<
Splits the iterable into two lists based on theE> , provided by the DHUCollectionsExtensions extensionpredicate. -
peek(
) → T -
In the rare instance that you have an effect that should write to another signal based on the previous value, but you don't want the effect to be subscribed to that signal, you can read a signals's previous value via
signal.peek().inherited -
percentile(
double percentile) → num -
Available on Iterable<
Computes the specifiednum> , provided by the DHUListNumStats extensionpercentileof the numbers in the iterable. -
percentile(
double percentile) → int -
Available on Iterable<
Computes the specifiedint> , provided by the DHUListIntStats extensionpercentileof the integers in the iterable. -
percentile(
double percentile) → double -
Available on Iterable<
Computes the specifieddouble> , provided by the DHUListDoubleStats extensionpercentileof the doubles in the iterable. -
readonly(
) → ReadonlySignal< T> -
Returns a readonly signal
inherited
-
reduce(
E combine(E value, E element)) → E -
Reduces a collection to a single value by iteratively combining elements
of the collection using the provided function.
override
-
reduce(
E combine(E value, E element)) → E -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
remove(
Object? value) → bool -
Available on Signal<
List< , provided by the ListSignalExtension extensionE> > -
remove(
Object? value) → bool -
Available on Signal<
Set< , provided by the SetSignalExtension extensionE> > -
removeAll(
Iterable< Object?> elements) → void -
Available on Signal<
Set< , provided by the SetSignalExtension extensionE> > -
removeAt(
int index) → E -
Available on Signal<
List< , provided by the ListSignalExtension extensionE> > -
removeLast(
) → E -
Available on Signal<
List< , provided by the ListSignalExtension extensionE> > -
removeRange(
int start, int end) → void -
Available on Signal<
List< , provided by the ListSignalExtension extensionE> > -
removeWhere(
bool test(E element)) → void -
Available on Signal<
List< , provided by the ListSignalExtension extensionE> > -
removeWhere(
bool test(E element)) → void -
Available on Signal<
Set< , provided by the SetSignalExtension extensionE> > -
replaceRange(
int start, int end, Iterable< E> replacements) → void -
Available on Signal<
List< , provided by the ListSignalExtension extensionE> > -
retainAll(
Iterable< Object?> elements) → void -
Available on Signal<
Set< , provided by the SetSignalExtension extensionE> > -
retainWhere(
bool test(E element)) → void -
Available on Signal<
List< , provided by the ListSignalExtension extensionE> > -
retainWhere(
bool test(E element)) → void -
Available on Signal<
Set< , provided by the SetSignalExtension extensionE> > -
secondHalf(
) → List< E> -
Available on Iterable<
Returns the second half of the iterable.E> , provided by the DHUCollectionsExtensions extension -
set(
T val, {bool force = false}) → bool -
Set the current value by a method
inherited
-
setAll(
int index, Iterable< E> iterable) → void -
Available on Signal<
List< , provided by the ListSignalExtension extensionE> > -
setRange(
int start, int end, Iterable< E> iterable, [int skipCount = 0]) → void -
Available on Signal<
List< , provided by the ListSignalExtension extensionE> > -
shuffle(
[Random? random]) → void -
Available on Signal<
List< , provided by the ListSignalExtension extensionE> > -
singleWhere(
bool test(E element), {E orElse()?}) → E -
The single element that satisfies
test.override -
singleWhere(
bool test(E element), {E orElse()?}) → E -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
skip(
int count) → Iterable< E> -
Creates an Iterable that provides all but the first
countelements.override -
skip(
int count) → Iterable< E> -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
skipWhile(
bool test(E value)) → Iterable< E> -
Creates an
Iterablethat skips leading elements whiletestis satisfied.override -
skipWhile(
bool test(E value)) → Iterable< E> -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
sort(
[int compare(E a, E b)?]) → void -
Available on Signal<
List< , provided by the ListSignalExtension extensionE> > -
sorted(
[int compare(E a, E b)?]) → List< E> -
Available on ReadonlySignal<
Return a new array that is sorted by theList< , provided by the ReadonlyListSignalExtension extensionE> >comparefunction -
sublist(
int start, [int? end]) → List< E> -
Available on ReadonlySignal<
List< , provided by the ReadonlyListSignalExtension extensionE> > -
subscribe(
void fn(T value)) → void Function() -
Subscribe to value changes with a dispose function
inherited
-
subscribeToNode(
Node node) → void -
inherited
-
subtract(
Iterable< E> other) → Set<E> -
Available on Iterable<
Returns a set of elements contained in this collection but not inE> , provided by the DHUCollectionsExtensions extensionother. The returned set preserves the element iteration order of the original collection. -
sumBy(
int selector(T)) → int -
Available on Iterable<
Example:T> ?, provided by the ListExtensions extension -
sumByDouble(
num selector(T)) → double -
Available on Iterable<
Example:T> ?, provided by the ListExtensions extension -
swap(
int i, int j) → List< E> -
Available on Iterable<
Returns a list with elements atE> , provided by the DHUCollectionsExtensions extensioniandjswapped. -
take(
int count) → Iterable< E> -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
take(
int count) → Iterable< E> -
Creates a lazy iterable of the
countfirst elements of this iterable.override -
takeOnly(
int n) → List< E> -
Available on Iterable<
Returns a list containing the firstE> , provided by the DHUCollectionsExtensions extensionnelements. -
takeWhile(
bool test(E value)) → Iterable< E> -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
takeWhile(
bool test(E value)) → Iterable< E> -
Creates a lazy iterable of the leading elements satisfying
test.override -
toJson(
) → dynamic -
Convert value to JSON
inherited
-
toJsonList(
{JsonOptions options = const JsonOptions(), Object? toEncodable(dynamic object)?}) → List -
Available on Iterable<
Converts this iterable to a JSON-encodableT> , provided by the JsonIterableX extensionList. -
toJsonString(
{String? indent, JsonOptions options = const JsonOptions(), Object? toEncodable(dynamic object)?}) → String -
Available on Iterable<
Converts this iterable to a JSON string (pretty ifT> , provided by the JsonIterableX extensionindentis provided). -
toList(
{bool growable = true}) → List< E> -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
toList(
{bool growable = true}) → List< E> -
Creates a List containing the elements of this Iterable.
override
-
toListConverted<
R> () → List< R> -
Available on Iterable<
Converts this iterable to a list of typeE> , provided by the DHUCollectionsExtensions extensionRusing convert_object logic. -
toMutableSet(
{ElementConverter< E> ? converter}) → Set<E> -
Available on Iterable<
Returns this iterable as a mutable Set using the centralized conversion logic.E> , provided by the IterableConversionX extension -
toSet(
) → Set< E> -
Creates a Set containing the same elements as this iterable.
override
-
toSet(
) → Set< E> -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
toSetConverted<
R> () → Set< R> -
Available on Iterable<
Converts this iterable to a set of typeE> , provided by the DHUCollectionsExtensions extensionRusing convert_object logic. -
toSignal(
{String? debugLabel, bool autoDispose = false}) → IterableSignal< T> -
Available on Iterable<
Convert an existing list to IterableSignalT> , provided by the SignalIterableUtils extension -
toString(
) → String -
A string representation of this object.
inherited
-
totalBy(
num? valueSelector(E)) → num -
Available on Iterable<
Returns the sum of values calculated byE> ?, provided by the DHUCollectionsExtensionsNS extensionvalueSelectorfor each element. -
tryGetBigInt(
int index, {List< int> ? alternativeIndices, dynamic innerMapKey, int? innerIndex, BigInt? defaultValue, ElementConverter<BigInt> ? converter}) → BigInt? -
Available on Iterable<
Tries to convert the element atE> ?, provided by the NullableIterableConversionX extensionindex(or fallback indices) to BigInt. -
tryGetBool(
int index, {List< int> ? alternativeIndices, dynamic innerMapKey, int? innerIndex, bool? defaultValue, ElementConverter<bool> ? converter}) → bool? -
Available on Iterable<
Tries to convert the element atE> ?, provided by the NullableIterableConversionX extensionindex(or fallback indices) to bool. -
tryGetDateTime(
int index, {List< int> ? alternativeIndices, dynamic innerMapKey, int? innerIndex, String? format, String? locale, bool autoDetectFormat = false, bool useCurrentLocale = false, bool utc = false, DateTime? defaultValue, ElementConverter<DateTime> ? converter}) → DateTime? -
Available on Iterable<
Tries to convert the element atE> ?, provided by the NullableIterableConversionX extensionindex(or fallback indices) to DateTime. -
tryGetDouble(
int index, {List< int> ? alternativeIndices, dynamic innerMapKey, int? innerIndex, String? format, String? locale, double? defaultValue, ElementConverter<double> ? converter}) → double? -
Available on Iterable<
Tries to convert the element atE> ?, provided by the NullableIterableConversionX extensionindex(or fallback indices) to double. -
tryGetEnum<
T extends Enum> (int index, {required T parser(dynamic), List< int> ? alternativeIndices, dynamic innerMapKey, int? innerIndex, T? defaultValue, Map<String, dynamic> ? debugInfo}) → T? -
Available on Iterable<
Tries to convert the element atE> ?, provided by the NullableIterableConversionX extensionindex(or fallback indices) to an enum usingparser. -
tryGetInt(
int index, {List< int> ? alternativeIndices, dynamic innerMapKey, int? innerIndex, String? format, String? locale, int? defaultValue, ElementConverter<int> ? converter}) → int? -
Available on Iterable<
Tries to convert the element atE> ?, provided by the NullableIterableConversionX extensionindex(or fallback indices) to int. -
tryGetList<
T> (int index, {List< int> ? alternativeIndices, dynamic innerMapKey, int? innerIndex, List<T> ? defaultValue, ElementConverter<T> ? elementConverter}) → List<T> ? -
Available on Iterable<
Tries to convert the element atE> ?, provided by the NullableIterableConversionX extensionindex(or fallback indices) to a List ofT. -
tryGetMap<
K2, V2> (int index, {List< int> ? alternativeIndices, dynamic innerMapKey, int? innerIndex, Map<K2, V2> ? defaultValue, ElementConverter<K2> ? keyConverter, ElementConverter<V2> ? valueConverter}) → Map<K2, V2> ? -
Available on Iterable<
Tries to convert the element atE> ?, provided by the NullableIterableConversionX extensionindex(or fallback indices) to a Map ofK2toV2. -
tryGetNum(
int index, {List< int> ? alternativeIndices, dynamic innerMapKey, int? innerIndex, String? format, String? locale, num? defaultValue, ElementConverter<num> ? converter}) → num? -
Available on Iterable<
Tries to convert the element atE> ?, provided by the NullableIterableConversionX extensionindex(or fallback indices) to num. -
tryGetRandom(
[int? seed]) → E? -
Available on Iterable<
Retrieves a random element or null if the iterable is null.E> ?, provided by the DHUCollectionsExtensionsNS extension -
tryGetSet<
T> (int index, {List< int> ? alternativeIndices, dynamic innerMapKey, int? innerIndex, Set<T> ? defaultValue, ElementConverter<T> ? elementConverter}) → Set<T> ? -
Available on Iterable<
Tries to convert the element atE> ?, provided by the NullableIterableConversionX extensionindex(or fallback indices) to a Set ofT. -
tryGetString(
int index, {List< int> ? alternativeIndices, dynamic innerMapKey, int? innerIndex, String? defaultValue, ElementConverter<String> ? converter}) → String? -
Available on Iterable<
Tries to convert the element atE> ?, provided by the NullableIterableConversionX extensionindex(or fallback indices) to String. -
tryGetUri(
int index, {List< int> ? alternativeIndices, dynamic innerMapKey, int? innerIndex, Uri? defaultValue, ElementConverter<Uri> ? converter}) → Uri? -
Available on Iterable<
Tries to convert the element atE> ?, provided by the NullableIterableConversionX extensionindex(or fallback indices) to Uri. -
union(
Set< E> other) → Set<E> -
Available on ReadonlySignal<
Set< , provided by the ReadonlySetSignalExtension extensionE> > -
unsubscribeFromNode(
Node node) → void -
inherited
-
validate(
) → List< T> -
Available on Iterable<
Validate given List is not null and returns blank list if null. This should not be used to clear listT> ?, provided by the ListExtensions extension -
waitConcurrency(
{int concurrency = 5}) → Future< List< T> > -
Available on Iterable<
Executes the functions in this iterable, running at mostFuture< , provided by the DHUFutureIterableExtension extensionT> Function()>concurrencyfutures simultaneously. -
where(
bool test(E element)) → Iterable< E> -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
where(
bool test(E element)) → Iterable< E> -
Creates a new lazy Iterable with all elements that satisfy the
predicate
test.override -
whereType<
R> () → Iterable< R> -
Creates a new lazy Iterable with all elements that have type
T.override -
whereType<
R> () → Iterable< R> -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
windowed(
int size, {int step = 1, bool partials = false}) → List< List< E> > -
Available on Iterable<
Returns a sliding window ofE> , provided by the DHUCollectionsExtensions extensionsizeover the iterable.
Operators
-
operator +(
List< E> other) → List<E> -
Available on ReadonlySignal<
List< , provided by the ReadonlyListSignalExtension extensionE> > -
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
int index) → E -
Available on ReadonlySignal<
List< , provided by the ReadonlyListSignalExtension extensionE> > -
operator []=(
int index, E value) → void -
Available on Signal<
List< , provided by the ListSignalExtension extensionE> >