SetNotifier<T> class
A set notifier class that allows mutable updates and notifies listeners of changes.
- Inheritance
-
- Object
- Listenable
- ValueListenable<
Set< T> > - SetListenable<
T> - SetNotifier
- Implemented types
-
- Set<
T>
- Set<
- Mixed-in types
- Available extensions
Constructors
-
SetNotifier([Set<
T> set = const {}]) - Constructs a SetNotifier with an initial set.
Properties
-
ascending
→ List<
double> -
Available on Iterable<
double> , provided by the TIterableDouble extensionno setter -
ascending
→ List<
int> -
Available on Iterable<
int> , provided by the TIterableInt extensionno setter -
descending
→ List<
int> -
Available on Iterable<
int> , provided by the TIterableInt extensionno setter -
descending
→ List<
double> -
Available on Iterable<
double> , provided by the TIterableDouble extensionno setter - disabled → bool
-
Available on Set<
WidgetState> , provided by the WidgetStateExtension extensionno setter - error → bool
-
Available on Set<
WidgetState> , provided by the WidgetStateExtension extensionno setter -
evens
→ Iterable<
int> -
Available on Iterable<
int> , provided by the TIterableInt extensionno setter - first → T
-
The first element.
no setterinherited
- firstOr → T?
-
Available on Iterable<
T> , provided by the TIterable extensionno setter - firstOrNull → T?
-
Available on Iterable<
The first element of this iterator, orT> , provided by the IterableExtensions extensionnullif the iterable is empty.no setter - focused → bool
-
Available on Set<
WidgetState> , provided by the WidgetStateExtension extensionno setter - hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether the object has listeners.
no setterinherited
- hovered → bool
-
Available on Set<
WidgetState> , provided by the WidgetStateExtension extensionno setter -
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<
T> -
An iterator that iterates over the elements of this set.
no setteroverride
- last → T
-
The last element.
no setterinherited
- lastIndex → int
-
Available on Iterable<
Returns the last index of the iterable.T> , provided by the TIterable extensionno 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
-
list
→ List<
T> -
Available on Iterable<
T> , provided by the TIterable extensionno setter - middleIndex → int
-
Available on Iterable<
Returns the middle index of the iterable.T> , provided by the TIterable extensionno setter - mostCommon → T?
-
Available on Iterable<
T> , provided by the TIterable extensionno setter -
nonNulls
→ Iterable<
T> -
Available on Iterable<
The non-T?> , provided by the NullableIterableExtensions extensionnullelements of this iterable.no setter -
notNull
→ Iterable<
T> -
Available on Iterable<
T> , provided by the TIterable extensionno setter -
odds
→ Iterable<
int> -
Available on Iterable<
int> , provided by the TIterableInt extensionno setter - pressed → bool
-
Available on Set<
WidgetState> , provided by the WidgetStateExtension extensionno setter -
primes
→ Iterable<
int> -
Available on Iterable<
int> , provided by the TIterableInt extensionno setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selected → bool
-
Available on Set<
WidgetState> , provided by the WidgetStateExtension extensionno setter -
set
→ Set<
T> -
Available on Iterable<
T> , provided by the TIterable extensionno setter - single → T
-
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 -
unique
→ Iterable<
T> -
Available on Iterable<
T> , provided by the TIterable extensionno setter -
value
→ Set<
T> -
The current value of the object. When the value changes, the callbacks
registered with addListener will be invoked.
no setteroverride
-
wait
→ Future<
List< T> > -
Available on Iterable<
Waits for futures in parallel.Future< , provided by the FutureIterable extensionT> >no setter
Methods
-
add(
T value) → bool -
Adds
valueto the set.override -
add(
T element) → Iterable< T> -
Available on Iterable<
T> , provided by the TIterable extension -
addAll(
Iterable< T> values) → void -
Adds all
elementsto this set.override -
addAll(
Iterable< T> elements) → Iterable<T> -
Available on Iterable<
T> , provided by the TIterable extension -
addAllFirst(
Iterable< T> elements) → Iterable<T> -
Available on Iterable<
T> , provided by the TIterable extension -
addChangeListener(
SetChangeListener< T> listener) → void -
Adds a
listenerto be notified of changes.override -
addFirst(
T element) → Iterable< T> -
Available on Iterable<
T> , provided by the TIterable extension -
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object notifies its listeners.
override
-
any(
bool test(T element)) → bool -
Checks whether any element of this iterable satisfies
test.inherited -
asKeys<
R> (R f(T)) → Map< T, R> -
Available on Iterable<
Returns a new Map where the values are used as keys in a map.T> , provided by the TIterable extension -
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 -
asValues<
R> (R f(T)) → Map< R, T> -
Available on Iterable<
Returns a new Map where the values are used as values in a map.T> , provided by the TIterable extension -
average(
) → double -
Available on Iterable<
int> , provided by the TIterableInt extension -
average(
) → double -
Available on Iterable<
double> , provided by the TIterableDouble extension -
averageInt(
) → int -
Available on Iterable<
int> , provided by the TIterableInt extension -
byName(
String name) → T -
Available on Iterable<
Finds the enum value in this list with nameT> , provided by the EnumByName extensionname. -
cast<
R> () → Set< R> -
Provides a view of this set as a set of
Rinstances.override -
chunked(
int chunkSize) → Iterable< List< T> > -
Available on Iterable<
T> , provided by the TIterable extension -
clear(
) → void -
Removes all elements from the set.
override
-
column(
{Key? key, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start, MainAxisSize mainAxisSize = MainAxisSize.max, VerticalDirection verticalDirection = VerticalDirection.down, TextBaseline textBaseline = TextBaseline.alphabetic, TextDirection textDirection = TextDirection.ltr}) → Widget -
Available on Iterable<
Widget> , provided by the XIterableWidget extension -
contains(
Object? element) → bool -
Whether the collection contains an element equal to
element.inherited -
containsAll(
Iterable< Object?> other) → bool -
Whether this set contains all the elements of
other.override -
deduplicated(
) → Iterable< T> -
Available on Iterable<
Returns a new Iterable with deduplicated elements.T> , provided by the TIterable extension -
deduplicatedList(
) → List< T> -
Available on Iterable<
Returns a new List with deduplicated elements.T> , provided by the TIterable extension -
defaultAddListener(
ChangeListener listener) → void -
Add a listener to the list of listeners.
inherited
-
defaultNotifyListeners(
Object? event) → void -
Notify all the listeners.
inherited
-
defaultRemoveListener(
ChangeListener listener) → void -
Remove a listener from the list of listeners.
inherited
-
diff(
Iterable< T> other) → Iterable<T> -
Available on Iterable<
T> , provided by the TIterable extension -
difference(
Set< Object?> other) → Set<T> -
Creates a new set with the elements of this that are not in
other.override -
dispose(
) → void -
Disposes the object making it unusable for further operations and
releasing the resources.
inherited
-
elementAt(
int index) → T -
Returns the
indexth element.inherited -
elementAtOrNull(
int index) → T? -
Available on Iterable<
The element at positionT> , provided by the IterableExtensions extensionindexof this iterable, ornull. -
every(
bool test(T element)) → bool -
Checks whether every element of this iterable satisfies
test.inherited -
expand<
T> (Iterable< T> toElements(T element)) → Iterable<T> -
Expands each element of this Iterable into zero or more elements.
inherited
-
firstWhere(
bool test(T element), {T orElse()?}) → T -
The first element that satisfies the given predicate
test.inherited -
fold<
T> (T initialValue, T combine(T previousValue, T element)) → T -
Reduces a collection to a single value by iteratively combining each
element of the collection with an existing value
inherited
-
followedBy(
Iterable< T> other) → Iterable<T> -
Creates the lazy concatenation of this iterable and
other.inherited -
forEach(
void action(T element)) → void -
Invokes
actionon each element of this iterable in iteration order.inherited -
groupBy<
M> (M grouper(T)) → Map< M, List< T> > -
Available on Iterable<
T> , provided by the TIterable extension -
intersection(
Set< Object?> other) → Set<T> -
Creates a new set which is the intersection between this set and
other.override -
join(
[String separator = ""]) → String -
Converts each element to a String and concatenates the strings.
inherited
-
joinSeparator(
T separator) → Iterable< T> -
Available on Iterable<
T> , provided by the IterableExtension extension -
lastWhere(
bool test(T element), {T orElse()?}) → T -
The last element that satisfies the given predicate
test.inherited -
lookup(
Object? object) → T? -
If an object equal to
objectis in the set, return it.override -
map<
T> (T toElement(T e)) → Iterable< T> -
The current elements of this iterable modified by
toElement.inherited -
mapIndexed<
V> (V f(T value, int index)) → Iterable< V> -
Available on Iterable<
T> , provided by the TIterable extension -
mapList<
R> (R f(T)) → List< R> -
Available on Iterable<
Returns a new List with mapped elements.T> , provided by the TIterable extension -
max(
) → double -
Available on Iterable<
double> , provided by the TIterableDouble extension -
max(
) → int -
Available on Iterable<
int> , provided by the TIterableInt extension -
median(
) → int -
Available on Iterable<
int> , provided by the TIterableInt extension -
median(
) → double -
Available on Iterable<
double> , provided by the TIterableDouble extension -
middleValue(
) → T? -
Available on Iterable<
Returns the middle element of the iterable.T> , provided by the TIterable extension -
min(
) → int -
Available on Iterable<
int> , provided by the TIterableInt extension -
min(
) → double -
Available on Iterable<
double> , provided by the TIterableDouble extension -
mode(
) → int -
Available on Iterable<
int> , provided by the TIterableInt extension -
mode(
) → double -
Available on Iterable<
double> , provided by the TIterableDouble extension -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
SetChangeDetails< T> details) → void - Notifies listeners of changes.
-
occurrences(
) → Map< T, int> -
Available on Iterable<
Returns a new Map with the number of occurrences of each element.T> , provided by the TIterable extension -
product(
) → int -
Available on Iterable<
int> , provided by the TIterableInt extension -
product(
) → double -
Available on Iterable<
double> , provided by the TIterableDouble extension -
reduce(
T combine(T value, T element)) → T -
Reduces a collection to a single value by iteratively combining elements
of the collection using the provided function.
inherited
-
reduceOr(
T or, T combine(T, T)) → T -
Available on Iterable<
T> , provided by the TIterable extension -
remove(
Object? value) → bool -
Removes
valuefrom the set.override -
removeAll(
Iterable< Object?> elements) → void -
Removes each element of
elementsfrom this set.override -
removeChangeListener(
SetChangeListener< T> listener) → void -
Removes a
listenerfrom being notified of changes.override -
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that the
object notifies.
override
-
removeWhere(
bool test(T element)) → void -
Removes all elements of this set that satisfy
test.override -
retainAll(
Iterable< Object?> elements) → void -
Removes all elements of this set that are not elements in
elements.override -
retainWhere(
bool test(T element)) → void -
Removes all elements of this set that fail to satisfy
test.override -
reversed(
) → Iterable< T> -
Available on Iterable<
Returns a new Iterable with reversed elements.T> , provided by the TIterable extension -
reversedList(
) → List< T> -
Available on Iterable<
Returns a new List with reversed elements.T> , provided by the TIterable extension -
row(
{Key? key, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start, MainAxisSize mainAxisSize = MainAxisSize.max, VerticalDirection verticalDirection = VerticalDirection.down, TextBaseline textBaseline = TextBaseline.alphabetic, TextDirection textDirection = TextDirection.ltr}) → Widget -
Available on Iterable<
Widget> , provided by the XIterableWidget extension -
select(
bool test(T)) → T? -
Available on Iterable<
T> , provided by the TIterable extension -
selectLast(
bool test(T)) → T? -
Available on Iterable<
T> , provided by the TIterable extension -
shuffled(
) → Iterable< T> -
Available on Iterable<
Returns a new Iterable with shuffled elements.T> , provided by the TIterable extension -
shuffledList(
) → List< T> -
Available on Iterable<
Returns a new List with shuffled elements.T> , provided by the TIterable extension -
singleWhere(
bool test(T element), {T orElse()?}) → T -
The single element that satisfies
test.inherited -
skip(
int n) → Iterable< T> -
Available on Iterable<
T> , provided by the TIterable extension -
skip(
int count) → Iterable< T> -
Creates an Iterable that provides all but the first
countelements.inherited -
skipWhile(
bool test(T value)) → Iterable< T> -
Creates an
Iterablethat skips leading elements whiletestis satisfied.inherited -
softMap<
R> (R? f(T)) → Iterable< R> -
Available on Iterable<
Returns a new Iterable with mapped elements that are not null.T> , provided by the TIterable extension -
softMapList<
R> (R? f(T)) → List< R> -
Available on Iterable<
Returns a new List with mapped elements that are not null.T> , provided by the TIterable extension -
sorted(
[int compare(T, T)?]) → List< T> -
Available on Iterable<
Returns a new List with sorted elements.T> , provided by the TIterable extension -
stack(
{Key? key, AlignmentGeometry alignment = AlignmentDirectional.topStart, TextDirection textDirection = TextDirection.ltr, StackFit fit = StackFit.loose, Clip clipBehavior = Clip.hardEdge}) → Widget -
Available on Iterable<
Widget> , provided by the XIterableWidget extension -
sum(
) → double -
Available on Iterable<
double> , provided by the TIterableDouble extension -
sum(
) → int -
Available on Iterable<
int> , provided by the TIterableInt extension -
take(
int count) → Iterable< T> -
Creates a lazy iterable of the
countfirst elements of this iterable.inherited -
takeWhile(
bool test(T value)) → Iterable< T> -
Creates a lazy iterable of the leading elements satisfying
test.inherited -
toList(
{bool growable = true}) → List< T> -
Creates a List containing the elements of this Iterable.
inherited
-
toRect(
) → Rect -
Available on Iterable<
Offset> , provided by the XIterableOffset extension -
toRect(
) → Rect -
Available on Iterable<
Rect> , provided by the XIterableRect extension -
toSet(
) → Set< T> -
Creates a Set containing the same elements as this iterable.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
union(
Set< T> other) → Set<T> -
Creates a new set which contains all the elements of this set and
other.override -
wait(
) → Future< List< T> > -
Available on Iterable<
Future< , provided by the TIterableFuture extensionT> > -
weave(
Iterable< T> other) → Iterable<T> -
Available on Iterable<
Weaves two iterables together into a new Iterable alternating elements.T> , provided by the TIterable extension -
where(
bool test(T element)) → Iterable< T> -
Creates a new lazy Iterable with all elements that satisfy the
predicate
test.inherited -
whereIndex(
bool test(T value, int index)) → Iterable< T> -
Available on Iterable<
T> , provided by the TIterable extension -
whereType<
T> () → Iterable< T> -
Creates a new lazy Iterable with all elements that have type
T.inherited -
withPylons(
PylonBuilder builder) → List< Widget> -
Available on Iterable<
Maps each item in this iterable to a Pylon widget using the providedT> , provided by the XPylonIterable extensionbuilder, returning a list suitable for use in widget trees.
Operators
-
operator %(
int value) → Iterable< double> -
Available on Iterable<
double> , provided by the TIterableDouble extension -
operator %(
int value) → Iterable< int> -
Available on Iterable<
int> , provided by the TIterableInt extension -
operator &(
int value) → Iterable< int> -
Available on Iterable<
int> , provided by the TIterableInt extension -
operator *(
int value) → Iterable< double> -
Available on Iterable<
double> , provided by the TIterableDouble extension -
operator *(
int value) → Iterable< int> -
Available on Iterable<
int> , provided by the TIterableInt extension -
operator +(
int value) → Iterable< double> -
Available on Iterable<
double> , provided by the TIterableDouble extension -
operator +(
int value) → Iterable< int> -
Available on Iterable<
int> , provided by the TIterableInt extension -
operator +(
T element) → Set< T> -
operator -(
int value) → Iterable< double> -
Available on Iterable<
double> , provided by the TIterableDouble extension -
operator -(
int value) → Iterable< int> -
Available on Iterable<
int> , provided by the TIterableInt extension -
operator -(
T element) → Set< T> -
operator /(
int value) → Iterable< double> -
Available on Iterable<
double> , provided by the TIterableDouble extension -
operator <<(
int value) → Iterable< int> -
Available on Iterable<
int> , provided by the TIterableInt extension -
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator >>(
int value) → Iterable< int> -
Available on Iterable<
int> , provided by the TIterableInt extension -
operator ^(
int value) → Iterable< int> -
Available on Iterable<
int> , provided by the TIterableInt extension -
operator unary-(
) → Iterable< double> -
Available on Iterable<
double> , provided by the TIterableDouble extension -
operator unary-(
) → Iterable< int> -
Available on Iterable<
int> , provided by the TIterableInt extension -
operator |(
int value) → Iterable< int> -
Available on Iterable<
int> , provided by the TIterableInt extension -
operator ~(
) → Iterable< int> -
Available on Iterable<
int> , provided by the TIterableInt extension -
operator ~/(
int value) → Iterable< int> -
Available on Iterable<
int> , provided by the TIterableInt extension