LavaLampEffect constructor
const
LavaLampEffect({})
Creates a lava lamp effect widget.
The size parameter is required and determines the dimensions of the
lava lamp effect.
The color parameter is optional and defaults to the primary color of
the current theme.
The lavaCount parameter determines the number of lava blobs in the
animation and defaults to 4.
The speed parameter controls the speed of the animation and defaults to 1.
Higher values result in faster movement.
The repeatDuration parameter sets the duration of one complete animation
cycle and defaults to 10 seconds.
Implementation
const LavaLampEffect({
super.key,
required this.size,
this.color,
this.lavaCount = 4,
this.speed = 1,
this.repeatDuration = const Duration(seconds: 10),
});