createInstance method
Override to provide a fresh uninitialized instance of this type.
Required for cloning to work. Example:
@override
MyEntity createInstance() => MyEntity(app);
Implementation
@override
CPulse<T> createInstance() {
final c = CPulse<T>(app,
minScale: minScale,
maxScale: maxScale,
speed: speed,
time: pulseTime,
);
c.currentScale = currentScale;
return c;
}