letNullable<R> method

R? letNullable<R>(
  1. R? block(
    1. T? it
    )
)

Back-compat variant whose block accepts a nullable receiver.

Implementation

R? letNullable<R>(R? Function(T? it) block) =>
    this == null ? null : block(this);