AnimationApi class

Constructors

AnimationApi(Client _client)

Properties

hashCode int
The hash code for this object.
no setterinherited
onAnimationCanceled Stream<String>
Event for when an animation has been cancelled.
no setter
onAnimationCreated Stream<String>
Event for each animation that has been created.
no setter
onAnimationStarted Stream<Animation>
Event for animation that has been started.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

disable() Future<void>
Disables animation domain notifications.
enable() Future<void>
Enables animation domain notifications.
getCurrentTime(String id) Future<num>
Returns the current time of the an animation. id Id of animation. Returns: Current time of the page.
getPlaybackRate() Future<num>
Gets the playback rate of the document timeline. Returns: Playback rate for animations on page.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
releaseAnimations(List<String> animations) Future<void>
Releases a set of animations to no longer be manipulated. animations List of animation ids to seek.
resolveAnimation(String animationId) Future<RemoteObject>
Gets the remote object of the Animation. animationId Animation id. Returns: Corresponding remote object.
seekAnimations(List<String> animations, num currentTime) Future<void>
Seek a set of animations to a particular time within each animation. animations List of animation ids to seek. currentTime Set the current time of each animation.
setPaused(List<String> animations, bool paused) Future<void>
Sets the paused state of a set of animations. animations Animations to set the pause state of. paused Paused state to set to.
setPlaybackRate(num playbackRate) Future<void>
Sets the playback rate of the document timeline. playbackRate Playback rate for animations on page
setTiming(String animationId, num duration, num delay) Future<void>
Sets the timing of an animation node. animationId Animation id. duration Duration of the animation. delay Delay of the animation.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited