cast<R> method

  1. @override
Iterable<R> cast<R>()
override

Returns an iterable of R instances. If this set contains instances which cannot be cast to R, it will throw an error.

Implementation

@override
Iterable<R> cast<R>() => _s.cast<R>();