filter method
Returns None if the predicate noFuturesAllowed
returns false
.
Otherwise, returns the original Option.
Implementation
@override
@pragma('vm:prefer-inline')
Option<T> filter(@noFuturesAllowed bool Function(T value) noFuturesAllowed) {
return noFuturesAllowed(value) ? this : const None();
}