createClone method

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

Override to customize how state is copied into newInstance.

Returns the populated copy. By default returns newInstance unchanged.

Implementation

E createClone(E newInstance, [C? cloner]) => newInstance;