MovingBackground constructor

const MovingBackground({
  1. Key? key,
  2. Widget? child,
  3. Color? backgroundColor,
  4. AnimationType animationType = AnimationType.mixed,
  5. Duration? duration = const Duration(seconds: 15),
  6. required List<MovingCircle> circles,
})

Creates a MovingBackground widget.

The child is an optional widget that can be placed on top of the moving background. The backgroundColor is the color of the background, defaulting to white if not provided. The circles is a list of MovingCircle widgets that define the circles on the background.

Implementation

const MovingBackground({
  super.key,
  this.child,
  this.backgroundColor,
  this.animationType=AnimationType.mixed,
  this.duration=const Duration(seconds: 15),
  required this.circles,
});