letWithElseCall<R> method

R letWithElseCall<R>(
  1. R block(
    1. T it
    ),
  2. R orElse()
)

Implementation

R letWithElseCall<R>(
  final R Function(T it) block,
  final R Function() orElse,
) =>
    this?.let(block) ?? orElse();