whereNotNull method

Maybe<T> whereNotNull()

In case theres a value, keep it only if it is not null, otherwise return None.

Implementation

Maybe<T> whereNotNull() => where((e) => e != null).cast();