AnimationHandleImplTimer class
Timer based implementation of {@link AnimationScheduler.AnimationHandle}.
class AnimationHandleImplTimer extends AnimationHandle { AnimationCallback callback; AnimationSchedulerImplTimer _impl; AnimationHandleImplTimer(this.callback, this._impl); void cancel() { _impl.cancelAnimationFrame(this); } AnimationCallback getCallback() { return callback; } }
Extends
AnimationHandle > AnimationHandleImplTimer
Constructors
new AnimationHandleImplTimer(AnimationCallback callback, AnimationSchedulerImplTimer _impl) #
Properties
AnimationCallback callback #
AnimationCallback callback
Methods
void cancel() #
Cancel the requested animation frame. If the animation frame is already canceled, do nothing.
docs inherited from AnimationHandle
void cancel() { _impl.cancelAnimationFrame(this); }
AnimationCallback getCallback() #
AnimationCallback getCallback() { return callback; }