let<R> method

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

Calls block with this as argument and returns the result.

Implementation

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