let<R> method

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

Executes block when non-null, returning its result or null if the receiver is null.

Implementation

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