whereType<U> method

Iterable<T> whereType<U>()

Filters elements of a specific type T.

Implementation

Iterable<T> whereType<U>() => where((element) => element is U).cast<T>();