SetMove<E> class
A namespace for functions that move a Set's elements to other collections.
To access SetMove, call the MovableSet.move extension method on a set.
Contract
A ConcurrentModificationError is thrown if a predicate modifies the list.
final foo = {1, 2, 3, 4, 5};
foo.move(where: foo.remove).toSet(); // throws ConcurrentModificationError
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
collect(
Consume< E> consume) → void -
Moves the set's elements that satisfy the predicate to
consume
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toSet(
) → Set< E> - Move the set's elements that satisfy the predicate to another Set.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited