The task object representing animation-frame requests.
For historical reasons, Window.requestAnimationFrame returns an integer to users. However, zone tasks must be unique objects, and an integer can therefore not be used as task object. The Window class thus keeps a mapping from the integer ID to the corresponding task object. All zone related operations work on this task object, whereas users of Window.requestAnimationFrame only see the integer ID.
Since this mapping takes up space, it must be removed when the
animation-frame task has triggered. The default implementation does this
automatically, but intercepting implementations of requestAnimationFrame
must make sure to call the AnimationFrameTask.removeMapping
function that is provided in the task specification.
Experimental. This class may disappear without notice.
Static Methods
-
removeMapping(
int id) → void -
Removes the mapping from
id
to AnimationFrameTask.
Constructors
Properties
Operators
-
operator ==(
other) → bool -
The equality operator.
inherited
Methods
-
cancel(
Window window) → void -
Cancels the animation-frame request.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited -
toString(
) → String -
Returns a string representation of this object.
inherited