flatMap2<T1, U> method

Optional<U> flatMap2<T1, U>(
  1. Optional<T1> other,
  2. Optional<U> f(
    1. T,
    2. T1
    )
)

Implementation

Optional<U> flatMap2<T1, U>(
  Optional<T1> other,
  Optional<U> Function(T, T1) f,
) =>
    flatMap(
      (value) => other.flatMap(
        (value1) => f(value, value1),
      ),
    );