API Reference 0.3.24dart_web_toolkit_animationAnimationHandleImplTimer

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) #

Creates a new Object instance.

Object instances have no meaningful state, and are only useful through their identity. An Object instance is equal to itself only.

docs inherited from Object
AnimationHandleImplTimer(this.callback, this._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;
}