where method

  1. @override
Maybe<T> where(
  1. bool predicate(
    1. T value
    )
)
override

Filter the value using the predicate.

Implementation

@override
Maybe<T> where(bool Function(T value) predicate) =>
    predicate(value) ? this : Nothing();