run<R> method
R
run<R>(
- R block(
- T self
Executes block with value as 'this' context and returns result Usage: user.run((self) => self.name.toUpperCase())
Implementation
R run<R>(R Function(T self) block) {
return block(this);
}