validate method

Iterable<T> validate()

Returns an empty iterable if this is null.

Implementation

Iterable<T> validate() => this?.whereType<T>() ?? const Iterable.empty();