apply method

T apply(
  1. void block(
    1. T obj
    )
)

Calls the specified function block with this value as its argument and returns this value.

Implementation

T apply(void Function(T obj) block) {
  block(this);
  return this;
}