letWithElse<R> method

R letWithElse<R>(
  1. R block(
    1. T it
    ), {
  2. required R orElse,
})

Implementation

R letWithElse<R>(final R Function(T it) block, {required final R orElse}) =>
    this?.let(block.call) ?? orElse;