whenCreateInstance method

Comp<T> whenCreateInstance(
  1. Comp<T> fn(
    1. Comp<T> component
    )
)
inherited

Registers fn as the instance factory used during cloning.

Implementation

E whenCreateInstance(E Function(E self) fn) {
  _whenOnCreateInstanceFn = fn;
  return self;
}