let<R> method
R?
let<R>(
- R block(
- 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);