apply<R> method

R apply<R>(
  1. R f(
    1. T self
    )
)

Applies f to this object and returns the result.

Implementation

R apply<R>(R Function(T self) f) => f(this);