whenClone method

Comp<T> whenClone(
  1. Comp<T> fn(
    1. Comp<T> newInstance, [
    2. Cloner<T>? cloner
    ])
)
inherited

Registers fn as the clone factory, replacing the default clone behavior.

Implementation

E whenClone(E Function(E self, [C? cloner]) fn) {
  _whenOnCloneFn = fn;
  return self;
}