ClockTransition class final
A radial "clock" sweep around origin, optionally fanned into sectors identical wedges.
const ClockTransition(sectors: 4) // 4-blade fan
const ClockTransition(invert: true) // counter-clockwise
- Inheritance
-
- Object
- ShaderTransition
- ClockTransition
Constructors
- ClockTransition({Alignment origin = Alignment.center, int sectors = 1, double rotation = 0.0, double feather = 2.0, Duration duration = const Duration(milliseconds: 700), TransitionCover? cover, bool invert = false})
-
Creates a clock/radial sweep 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 - duration → Duration
-
Total animation time, used unchanged for both push and pop.
finalinherited
- feather → double
-
Edge softness of the sweeping hand, in logical pixels.
final
- 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
- origin → Alignment
-
The pivot the hand sweeps around.
Alignment.centeris the screen center; corners pivot a clock-wipe from that corner.final - rotation → double
-
Start angle of the sweep, in radians.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sectors → int
-
Number of identical radial wedges.
1is a single hand; higher values fan the sweep into a multi-blade pinwheel. Clamped to ≥ 1.final - shaderKey → String
-
The ShaderRegistry key (and
.fragbasename) backing this transition.no setteroverride
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