move method

  1. @lazy
  2. @useResult
SetMove<E> move({
  1. required Predicate<E> where,
})

Returns a SetMove used to move elements in this Set to other collections.

Example

final foo = {1, 2, 3, 4, 5};
final bar = foo.move(where: (e) => e.isEven).toSet();

print(foo); // {1, 3, 5}
print(bar); // {2, 4}

Implementation

@lazy @useResult SetMove<E> move({required Predicate<E> where}) => SetMove(this, where);