whereNotNull method

  1. @Deprecated('Deprecated for non nullable types!')
Maybe<T> whereNotNull()

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

Implementation

/// In case theres a value, keep it only if it is not [null], otherwise
/// return [None].
@Deprecated('Deprecated for non nullable types!')
Maybe<T> whereNotNull() => this;