toSet method

  1. @override
Set<E> toSet()
override

Returns a new set containing the same elements as this set.

This is a non-mutating operation that creates a new set.

Implementation

@override
Set<E> toSet() => value.toSet();