flatMap3<T1, T2, U> method

Optional<U> flatMap3<T1, T2, U>(
  1. Optional<T1> other,
  2. Optional<T2> other2,
  3. Optional<U> f(
    1. T,
    2. T1,
    3. T2
    )
)

Implementation

Optional<U> flatMap3<T1, T2, U>(
  Optional<T1> other,
  Optional<T2> other2,
  Optional<U> Function(T, T1, T2) f,
) =>
    flatMap(
      (value) => other.flatMap(
        (value1) => other2.flatMap(
          (value2) => f(value, value1, value2),
        ),
      ),
    );