LavaLampEffect constructor

const LavaLampEffect({
  1. Key? key,
  2. required Size size,
  3. Color? color,
  4. int lavaCount = 4,
  5. int speed = 1,
  6. Duration repeatDuration = const Duration(seconds: 10),
})

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),
});