CurtainTransition class

Fades a veil above everything to full opacity at swapAt, swaps the sides under it, and fades it back out.

The veil fills the region swapped, so a shape-less ShapeNode makes a solid curtain.

Inheritance

Constructors

CurtainTransition({required Node veil, double? duration, Curve? curve, double? swapAt, Activity? incoming, Activity? outgoing})

Properties

chrome → OpacityNode
This transition's own visuals, mounted above the host's whole subtree for the length of the navigation. Null for none.
latefinal
hashCode → int
The hash code for this object.
no setterinherited
incoming → Activity
What the arriving route takes part in while this runs.
finalinherited
outgoing → Activity
What the departing route takes part in while this runs.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
swapAt → double
The progress at which the sides trade places. Defaults to 0.5.
final
timeline → Timeline
This transition's clock, driven by a Router.
finalinherited
veil → Node
What is faded through.
final

Methods

apply(double progress, RouteNode incoming, RouteNode? outgoing) → void
Poses both sides at progress by writing onto the routes, whose size is the region being routed. outgoing is null on a push, where nothing is leaving and the covered route is its Backdrop's to pose. Runs once when the navigation starts and once per tick after the clock moves, so rendering always sees the pose.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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