andThen<U extends Object> method
Returns None if the option is None, otherwise calls f with the wrapped value and returns the result. Some languages call this operation flatmap.
Implementation
@pragma("vm:prefer-inline")
Option<U> andThen<U extends Object>(Option<U> Function(T) f) {
return v == null ? None : f(v!);
}