whereIs<TCast> method
Returns an Iterable containing all elements that are assignable to TCast while also casting those elements to that type.
Implementation
Iterable<TCast> whereIs<TCast>() =>
where((element) => element is TCast).cast<TCast>();