ViewTransition extension type

The ViewTransition interface of the View Transitions API represents a view transition, and provides functionality to react to the transition reaching different states (e.g. ready to run the animation, or animation finished) or skip the transition altogether.

This object type is returned by the Document.startViewTransition method. When startViewTransition() is invoked, a sequence of steps is followed as explained in The view transition process. This also explains when the different promises fulfill.

on
Implemented types

Properties

finished JSPromise<JSAny?>
no setter
hashCode int
The hash code for this object.
no setterinherited
ready JSPromise<JSAny?>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
updateCallbackDone JSPromise<JSAny?>
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
skipTransition() → void
The skipTransition() method of the ViewTransition interface skips the animation part of the view transition, but doesn't skip running the Document.startViewTransition callback that updates the DOM.
toString() String
A string representation of this object.
inherited

Operators

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