onSelf method

E onSelf(
  1. void fn(
    1. E self
    )
)
inherited

Calls fn with self and returns self, for fluent chaining.

Implementation

T onSelf(void Function(T self) fn) {
  fn(self);
  return self;
}