whereIsInstance<T> method

Iterable<T> whereIsInstance<T>()

Returns an Iterable containing all elements that are instances of specified type parameter T.

Implementation

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