also method

T also(
  1. dynamic fn(
    1. T
    )
)

Calls the provided function with the value of this as its argument and returns the this value.

Implementation

T also(Function(T) fn) {
  fn(this);
  return this;
}