flatMap<U> method

Optional<U> flatMap<U>(
  1. Optional<U> f(
    1. T
    )
)

Implementation

Optional<U> flatMap<U>(Optional<U> Function(T) f) => iif(
      some: (value) => f(value),
      none: () => Optional<U>.none(),
    );