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

@pragma('vm:prefer-inline')
@pragma('dart2js:tryInline')
R let<R>(R Function(T) block) {
  return block(this as T);
}