PolygonTransition class final
A regular-polygon iris reveal from origin. A high sides count approximates CircleTransition.
const PolygonTransition(sides: 3) // triangle iris
const PolygonTransition(sides: 6, rotation: 0.5)
- Inheritance
-
- Object
- ShaderTransition
- PolygonTransition
Constructors
- PolygonTransition({Alignment origin = Alignment.center, int sides = 6, double feather = 2.0, double rotation = 0.0, Duration duration = const Duration(milliseconds: 700), TransitionCover? cover, bool invert = false})
-
Creates a polygon iris 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 polygon outline, 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 point the polygon iris emanates from.
final
- rotation → double
-
Polygon orientation, in radians.
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 - sides → int
-
Polygon side count. Clamped to ≥ 3; large values look circular.
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