HeatWaveEffect class
A shader-based heat wave / rising shimmer distortion effect.
Distorts the scene with upward-moving sine waves that are stronger at the bottom and fade toward the top, simulating heat haze rising from a hot surface.
{@tool snippet}
GKWidget(
effect: HeatWaveEffect(
frequency: 8.0,
amplitude: 0.01,
),
trigger: GKTrigger.auto,
)
{@end-tool}
Constructors
- HeatWaveEffect({double frequency = 8.0, double amplitude = 0.01})
-
Creates a HeatWaveEffect.
const
Properties
Methods
-
build(
BuildContext context, GKController controller, {Widget? child}) → Widget -
Builds the widget tree for this effect.
override
-
dispose(
) → void -
Override to release resources held by this effect.
inherited
-
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