RxSet<E> class
- Inheritance
- Implemented types
-
- RxInterface<
Set< E> >
- RxInterface<
- Mixed-in types
-
- NotifyManager<
Set< E> > - RxObjectMixin<
Set< E> >
- NotifyManager<
- Available extensions
Properties
- canUpdate → bool
-
no setterinherited
- first → E
-
The first element.
no setterinherited
- firstOrNull → T?
-
Available on Iterable<
The first element of this iterator, orT> , provided by the IterableExtensions extensionnullif the iterable is empty.no setter - firstRebuild ↔ bool
-
getter/setter pairinherited
- 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 - isEmpty → bool
-
Whether this collection has no elements.
no setterinherited
- isNotEmpty → bool
-
Whether this collection has at least one element.
no setterinherited
-
iterator
→ Iterator<
E> -
An iterator that iterates over the elements of this set.
no setteroverride
- last → E
-
The last element.
no setterinherited
- lastIndex → int
-
Available on Iterable<
E> , provided by the $KotlinCollection extensionno setter - lastIndex → int?
-
Available on Iterable<
Returns the last accessible index. If collection is empty this returnsT> , provided by the IterableBasics2 extensionnull.no setter - 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
-
The number of elements in this Iterable.
no setteroverride
-
nonNulls
→ Iterable<
T> -
Available on Iterable<
The non-T?> , provided by the NullableIterableExtensions extensionnullelements of this iterable.no setter -
obs
→ RxSet<
E> -
Available on Set<
E> , provided by the SetExtension extensionno setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sentToStream ↔ bool
-
getter/setter pairinherited
- single → E
-
Checks that this iterable has only one element, and returns that element.
no setterinherited
- singleOrNull → T?
-
Available on Iterable<
The single element of this iterator, orT> , provided by the IterableExtensions extensionnull.no setter -
stream
→ Stream<
Set< E> > -
no setterinherited
- string → String
-
Same as
toString()but using a getter.no setterinherited -
subject
↔ GetStream<
Set< E> > -
getter/setter pairinherited
-
value
↔ Set<
E> -
Returns the current value
getter/setter pairoverride
-
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 -
Adds
valueto the set.override -
addAll(
Iterable< E> elements) → void -
Adds all
elementsto this set.override -
addAllIf(
dynamic condition, Iterable< E> items) → void -
Available on Set<
Adds Iterable<E> to List<E> only ifE> , provided by the SetExtension extensionconditionis true. -
addIf(
dynamic condition, E item) → void -
Available on Set<
AddE> , provided by the SetExtension extensionitemto List<E> only ifconditionis true. -
addListener(
GetStream< Set< rxGetx) → voidE> > -
This is an internal method.
Subscribe to changes on the inner stream.
inherited
-
all(
bool test(E element)) → bool -
Available on Iterable<
Alias for IterableE> , provided by the VxIterableBasics extension.every. -
any(
bool test(E element)) → bool -
Checks whether any element of this iterable satisfies
test.inherited -
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 -
assign(
E item) → void -
Available on Set<
Replaces all existing items of this list withE> , provided by the SetExtension extensionitem -
assignAll(
Iterable< E> items) → void -
Available on Set<
Replaces all existing items of this list withE> , provided by the SetExtension extensionitems -
associate<
K, V> (MapEntry< K, V> transform(T element)) → Map<K, V> -
Available on Iterable<
Returns a map that contains MapEntrys provided by aT> , provided by the IterableBasics2 extensiontransformfunction. -
associateBy<
K> (K keySelector(T element)) → Map< K, T> -
Available on Iterable<
Returns a map where everyT> , provided by the IterableBasics2 extensionelementis associated by a key produced from thekeySelectorfunction. -
associateWith<
V> (V valueSelector(T element)) → Map< T, V> -
Available on Iterable<
Returns a map where everyT> , provided by the IterableBasics2 extensionelementis used as a key that is associated with a value produced by thevalueSelectorfunction. -
average(
) → double? -
Available on Iterable<
Returns the average value (arithmetic mean) of all elements.int> , provided by the IterableOfIntSC extension -
average(
) → double? -
Available on Iterable<
Returns the average value (arithmetic mean) of all elements.double> , provided by the IterableOfDoubleSC extension -
averageBy(
num selector(T)) → double? -
Available on Iterable<
Returns the average value (arithmetic mean) of all values produces by theT> , provided by the IterableBasics2 extensionselectorfunction that is applied to each element. -
bindStream(
Stream< Set< stream) → voidE> > -
Binds an existing
Stream<T>to thisRx<T>to keep the values in sync. You can bind multiple sources to update the value. Closing the subscription will happen automatically when the observer Widget (GetXorObx) gets unmounted from the Widget tree.inherited -
byName(
String name) → T -
Available on Iterable<
Finds the enum value in this list with nameT> , provided by the EnumByName extensionname. -
call(
[Set< E> ? v]) → Set<E> -
updates the value to
nulland adds it to the Stream. Even with null-safety coming, is still an important feature to support, ascall()doesn't acceptnullvalues. For instance,InputDecoration.errorTexthas to be null to not show the "error state".inherited -
cast<
R> () → Set< R> -
Provides a view of this set as a set of
Rinstances.inherited -
chunked(
int size, {T fill()?}) → Iterable< List< T> > -
Available on Iterable<
Splits the elements into lists of the specifiedT> , provided by the IterableBasics2 extensionsize. -
clear(
) → void -
Removes all elements from the set.
override
-
close(
) → void -
Closes the subscriptions for this Rx, releasing the resources.
inherited
-
contains(
Object? element) → bool -
Whether
valueis in the set.override -
containsAll(
Iterable< E> other, {bool collapseDuplicates = true}) → bool -
Available on Iterable<
Returns true if every element inE> , provided by the VxIterableBasics extensionotheralso exists inthis. -
containsAll(
Iterable< Object?> other) → bool -
Whether this set contains all the elements of
other.inherited -
containsAny(
Iterable< E> other) → bool -
Available on Iterable<
ReturnsE> , provided by the VxIterableBasics extensiontrueifthiscontains at least one element also contained inother. -
count(
[bool test(T element)?]) → int -
Available on Iterable<
Returns the number of elements that matches theT> , provided by the IterableBasics2 extensiontest. -
difference(
Set< Object?> other) → Set<E> -
Creates a new set with the elements of this that are not in
other.inherited -
elementAt(
int index) → E -
Returns the
indexth element.inherited -
elementAtOr(
int index, [E? defaultValue]) → E? -
Available on Iterable<
E> , provided by the $KotlinCollection extension -
elementAtOrElse(
int index, T orElse()) → T -
Available on Iterable<
Returns theT> , provided by the IterableBasics2 extensionindexth element. If the index is out of bounds theorElsesupplier function is called to provide a value. -
elementAtOrNull(
int index) → T? -
Available on Iterable<
The element at positionT> , provided by the IterableExtensions extensionindexof this iterable, ornull. -
every(
bool f(E element)) → bool -
Checks whether every element of this iterable satisfies
test.inherited -
expand<
T> (Iterable< T> f(E element)) → Iterable<T> -
Expands each element of this Iterable into zero or more elements.
inherited
-
filter(
bool test(T element)) → Iterable< T> -
Available on Iterable<
Returns a new Iterable with all elements that satisfy the predicateT> , provided by the IterableBasics2 extensiontest. -
firstOr(
[E? defaultValue]) → E? -
Available on Iterable<
E> , provided by the $KotlinCollection extension -
firstOrElse(
T orElse()) → T -
Available on Iterable<
Returns the first element. If there is no first element theT> , provided by the IterableBasics2 extensionorElsesupplier function is called to provide a value. -
firstOrNull(
) → T -
Available on Iterable<
Returns the first element. If there is no first element it will returnT> , provided by the IterableBasics2 extensionnull. -
firstWhere(
bool test(E value), {E orElse()?}) → E -
The first element that satisfies the given predicate
test.inherited -
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
inherited
-
followedBy(
Iterable< E> other) → Iterable<E> -
Creates the lazy concatenation of this iterable and
other.inherited -
forEach(
void f(E element)) → void -
Invokes
actionon each element of this iterable in iteration order.inherited -
forEachIndexed(
void funcIndexValue(int index, T element)) → void -
Available on Iterable<
Applies the functionT> , provided by the IterableBasics2 extensionfuncIndexValueto each element of this collection in iteration order. The function receives the element index as first parameterindexand theelementas the second parameter. -
groupBy<
K, V> (K keySelector(T element), {V valueTransform(T element)?}) → Map< K, List< V> > -
Available on Iterable<
Groups the elements of the list into a map by a key that is defined by aT> , provided by the IterableBasics2 extensionkeySelectorfunction. -
indexes(
) → Iterable< int> -
Available on Iterable<
IndexedValue< , provided by the $KotlinIndexedValueExtension extensionE> > -
indexes(
) → Iterable< int> -
Available on Iterable<
E> , provided by the $KotlinCollection extension -
intersection(
Set< Object?> other) → Set<E> -
Creates a new set which is the intersection between this set and
other.inherited -
join(
[String separator = ""]) → String -
Converts each element to a String and concatenates the strings.
inherited
-
lastOr(
[E? defaultValue]) → E? -
Available on Iterable<
E> , provided by the $KotlinCollection extension -
lastOrElse(
T orElse()) → T -
Available on Iterable<
Returns the last element. If there is no last element theT> , provided by the IterableBasics2 extensionorElsesupplier function is called to provide a value. -
lastOrNull(
) → T -
Available on Iterable<
Returns the last element. If there is no last element it will returnT> , provided by the IterableBasics2 extensionnull. -
lastWhere(
bool test(E value), {E orElse()?}) → E -
The last element that satisfies the given predicate
test.inherited -
listen(
void onData(Set< E> ), {Function? onError, void onDone()?, bool? cancelOnError}) → StreamSubscription<Set< E> > -
inherited
-
listenAndPump(
void onData(Set< E> event), {Function? onError, void onDone()?, bool? cancelOnError}) → StreamSubscription<Set< E> > -
Returns a StreamSubscription similar to listen, but with the
added benefit that it primes the stream with the current value, rather
than waiting for the next value. This should not be called in
onInitor anywhere else during the build process.inherited -
lookup(
Object? element) → E? -
If an object equal to
objectis in the set, return it.override -
map<
T> (T f(E element)) → Iterable< T> -
The current elements of this iterable modified by
toElement.inherited -
mapIndexed<
U> (U transformer(T currentValue, int index)) → Iterable< U> -
Available on Iterable<
Just like map, but with access to the element's current index.T> , provided by the IterableBasics2 extension -
mapIsLast<
T> (T f(E e, bool isLast)) → Iterable< T> -
Available on Iterable<
E> , provided by the $KotlinCollection extension -
max(
) → int? -
Available on Iterable<
Returns the largest value of all elementsint> , provided by the IterableOfIntSC extension -
max(
) → double? -
Available on Iterable<
Returns the largest value of all elementsdouble> , provided by the IterableOfDoubleSC extension -
maximumBy(
Comparator< T> comparator) → T? -
Available on Iterable<
Returns the maximum value based on theT> , provided by the IterableBasics2 extensioncomparatorfunction. -
min(
) → int? -
Available on Iterable<
Returns the lowest value of all elementsint> , provided by the IterableOfIntSC extension -
min(
) → double? -
Available on Iterable<
Returns the lowest value of all elementsdouble> , provided by the IterableOfDoubleSC extension -
minimumBy(
Comparator< T> comparator) → T? -
Available on Iterable<
Returns the minimal value based on theT> , provided by the IterableBasics2 extensioncomparatorfunction. -
none(
bool test(E element)) → bool -
Available on Iterable<
ReturnsE> , provided by the VxIterableBasics extensiontrueif no element ofthissatisfiestest. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
one(
bool test(E element)) → bool -
Available on Iterable<
ReturnsE> , provided by the VxIterableBasics extensiontrueif there is exactly one element ofthiswhich satisfiestest. -
onEach(
void action(T element)) → Iterable< T> -
Available on Iterable<
Applies the givenT> , provided by the IterableBasics2 extensionactionon each element and also returns the whole Iterable without modifying it. -
onEachIndexed(
void action(T element, int index)) → Iterable< T> -
Available on Iterable<
Applies the givenT> , provided by the IterableBasics2 extensionactionon each element and also returns the whole Iterable without modifying it. Theactiontakes a second parameterindexmatching the element index. -
pickOne(
[Random? random]) → T -
Available on Iterable<
Returns a random item. The randomness can be customized by settingT> , provided by the IterableBasics2 extensionrandom. -
pickSome(
int count, [Random? random]) → List< T> -
Available on Iterable<
Returns an List ofT> , provided by the IterableBasics2 extensioncountrandom items. The randomness can be customized by settingrandom. -
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.
inherited
-
refresh(
) → void -
Makes a direct update of value adding it to the Stream
useful when you make use of Rx for custom Types to referesh your UI.
inherited
-
remove(
Object? value) → bool -
Removes
valuefrom the set.override -
removeAll(
Iterable< Object?> elements) → void -
Removes each element of
elementsfrom this set.override -
removeWhere(
bool test(E element)) → void -
Removes all elements of this set that satisfy
test.inherited -
replaceFirstWhere(
bool comparator(T currentValue), T newValue) → Iterable< T> -
Available on Iterable<
Replaces the first element that matches theT> , provided by the IterableBasics2 extensioncomparatorwithnewValue. -
replaceWhere(
bool comparator(T currentValue), T newValue) → Iterable< T> -
Available on Iterable<
Replaces every element that matches theT> , provided by the IterableBasics2 extensioncomparatorwithnewValue. -
retainAll(
Iterable< Object?> elements) → void -
Removes all elements of this set that are not elements in
elements.override -
retainWhere(
bool test(E)) → void -
Removes all elements of this set that fail to satisfy
test.override -
singleWhere(
bool test(E value), {E orElse()?}) → E -
The single element that satisfies
test.inherited -
skip(
int n) → Iterable< E> -
Creates an Iterable that provides all but the first
countelements.inherited -
skipWhile(
bool test(E value)) → Iterable< E> -
Creates an
Iterablethat skips leading elements whiletestis satisfied.inherited -
sortedBy(
Comparator< T> comparator) → List<T> -
Available on Iterable<
Returns this as sorted list using theT> , provided by the IterableBasics2 extensioncomparatorfunction. -
sortedByNum(
num valueProvider(T element)) → List< T> -
Available on Iterable<
Returns this as sorted list using theT> , provided by the IterableBasics2 extensionvalueProviderfunction that produces numerical values as base for sorting. -
sortedByString(
String valueProvider(T element)) → List< T> -
Available on Iterable<
Returns this as sorted list using theT> , provided by the IterableBasics2 extensionvalueProviderfunction that produces character values as base for sorting. -
sum(
num addend(E)) → num -
Available on Iterable<
Returns the sum of all the values in this iterable, as defined byE> , provided by the VxIterableBasics extensionaddend. -
sum(
) → int -
Available on Iterable<
Returns the sum of all elements.int> , provided by the IterableOfIntSC extension -
sum(
) → double -
Available on Iterable<
Returns the sum of all elements.double> , provided by the IterableOfDoubleSC extension -
sum(
[num addend(E)?]) → num -
Available on Iterable<
Returns the sum of all the values in this iterable.E> , provided by the NumIterableBasics extension -
sumBy(
int selector(T)) → int -
Available on Iterable<
Returns the sum of all values produced by theT> , provided by the IterableBasics2 extensionselectorfunction that is applied to each element. -
sumByDouble(
num selector(T)) → double -
Available on Iterable<
Returns the sum of all values produced by theT> , provided by the IterableBasics2 extensionselectorfunction that is applied to each element. -
take(
int n) → Iterable< E> -
Creates a lazy iterable of the
countfirst elements of this iterable.inherited -
takeWhile(
bool test(E value)) → Iterable< E> -
Creates a lazy iterable of the leading elements satisfying
test.inherited -
toJson(
) → dynamic -
Returns the json representation of
value.inherited -
toList(
{bool growable = true}) → List< E> -
Creates a List containing the elements of this Iterable.
inherited
-
toSet(
) → Set< E> -
Creates a Set with the same elements and behavior as this
Set.override -
toString(
) → String -
A string representation of this object.
inherited
-
union(
Set< E> other) → Set<E> -
Creates a new set which contains all the elements of this set and
other.inherited -
update(
void fn(Iterable< E> ? value)) → void -
values(
) → Iterable< E> -
Available on Iterable<
IndexedValue< , provided by the $KotlinIndexedValueExtension extensionE> > -
where(
bool f(E element)) → Iterable< E> -
Creates a new lazy Iterable with all elements that satisfy the
predicate
test.inherited -
whereNot(
bool test(E element)) → Iterable< E> -
Available on Iterable<
E> , provided by the $KotlinCollection extension -
whereType<
T> () → Iterable< T> -
Creates a new lazy Iterable with all elements that have type
T.inherited -
withIndex(
) → Iterable< IndexedValue< E> > -
Available on Iterable<
E> , provided by the $KotlinCollection extension -
withoutFirst(
) → Iterable< T> -
Available on Iterable<
Lazily returns all values without the first one.T> , provided by the IterableBasics2 extension -
withoutLast(
) → Iterable< T> -
Available on Iterable<
Lazily returns all values without the last one.T> , provided by the IterableBasics2 extension
Operators
-
operator +(
Set< E> val) → RxSet<E> - Special override to push() element(s) in a reactive way inside the List,
-
operator ==(
Object o) → bool -
This equality override works for _RxImpl instances and the internal
values.
inherited