let<R> method

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

Calls the specified function block with this value as its argument and returns its result.

Implementation

R let<R>(R Function(T) block) => block(this);