run<R> method

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

Runs block with this and returns the result (alias of let).

Implementation

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