GVars constructor
GVars({})
Creates a new instance of GVars.
ease, delay, useFrames, overwrite, onStart, onComplete,
onUpdate, onStartParams
, onCompleteParams
, onUpdateParams
,
runBackwards, immediateRender, and startAt can be set on
instantiation.
Implementation
GVars({
this.ease,
this.delay,
this.useFrames,
this.overwrite,
this.onStart,
this.onComplete,
this.onUpdate,
Object? onStartParams,
Object? onCompleteParams,
Object? onUpdateParams,
this.runBackwards,
this.immediateRender,
this.startAt,
}) {
// For easy of use, you can send any Object to be parsed as function
// arguments.
this.onStartParams = CallbackParams.parse(onStartParams);
this.onCompleteParams = CallbackParams.parse(onCompleteParams);
this.onUpdateParams = CallbackParams.parse(onUpdateParams);
}