flatten method
flatten iterable of nullable into iterable of non-nullable
example
[1,null,2,null,3,null].flatten() // => [1,2,3];
Implementation
Iterable<T> flatten() => whereType<T>();
flatten iterable of nullable into iterable of non-nullable
example
[1,null,2,null,3,null].flatten() // => [1,2,3];
Iterable<T> flatten() => whereType<T>();