WipeTransition class final
A straight feathered edge that travels across the screen in a SweepDirection, optionally rotation-rotated.
const WipeTransition(
direction: SweepDirection.rightToLeft,
softness: 6,
)
- Inheritance
-
- Object
- ShaderTransition
- WipeTransition
Constructors
- WipeTransition({double softness = 4.0, SweepDirection direction = SweepDirection.leftToRight, double rotation = 0.0, Duration duration = const Duration(milliseconds: 600), TransitionCover? cover, bool invert = false})
-
Creates a linear wipe transition.
const
Properties
- cover → TransitionCover?
-
Optional flat-color cover for a cinematic fade-through transition.
null(default) lets the outgoing page show through — a classic mask reveal.finalinherited - direction → SweepDirection
-
Which edge/corner the wipe travels from.
final
- duration → Duration
-
Total animation time, used unchanged for both push and pop.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- invert → bool
-
Reverses the reveal direction of the effect. For CircleTransition
this turns the expanding iris into a contracting one; for directional
transitions it flips which side reveals first.
finalinherited
- rotation → double
-
Rotates the wipe edge around screen center, in radians.
0(default) keeps the edge perpendicular to direction.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shaderKey → String
-
The ShaderRegistry key (and
.fragbasename) backing this transition.no setteroverride - softness → double
-
Feather width of the wipe edge in logical pixels.
0gives a hard edge.final
Methods
-
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