whenCloned method

Comp<T> whenCloned(
  1. Comp<T> fn(
    1. Comp<T> self,
    2. Comp<T> copy
    )
)
inherited

Registers fn to run after the clone is produced.

Implementation

E whenCloned(E Function(E self, E copy) fn) {
  _whenOnClonedFn = fn;
  return self;
}