EffectContext class final
Frame inputs for one playing effect. Path access returns a copy so effects cannot corrupt retained geometry.
Properties
- adapt → ColorAdaptation
-
How authored element colors paint on this canvas; effects apply it to
the colors they draw.
final
- connector → ResolvedConnector
-
The connector of an effect that plays along a route.
no setter
- effect → Effect
-
final
- elapsed → Duration
-
Time since the effect started, after its delay.
final
- element → ResolvedElement
-
The connector or shape the effect plays on.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- inverseZoom → double
-
final
- level → double
-
Emphasis from 0 (rest) to 1 (peak): progress shaped by the effect's
Waveform. With reduced motion it holds at 1.
final
- metric → PathMetric
-
Length measurements of a connector route.
no setter
- path → Path
-
The connector route, or the shape outline, in world coordinates.
no setter
- pathGeometry → ResolvedPathGeometry
-
no setter
- progress → double
-
Position within the current cycle, from 0 to 1, after Effect.phase and
Effect.reverse are applied. A holding effect reports how far its one
change has come.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shape → ResolvedShape
-
The shape of an effect that plays inside or around a shape.
no setter
- sizeToWorld → double
-
no setter
Methods
-
createPaint(
[double intensity = 1]) → Paint -
A fill paint in the effect color, or the element's color when the effect
has none, at the effect opacity scaled by
intensity. With an Effect.endColor it is a gradient across the element. -
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