DotBackground constructor

const DotBackground({
  1. Key? key,
  2. bool isLoading = false,
  3. Color? color,
  4. double dotRadius = 1.0,
  5. AxisDirection direction = AxisDirection.up,
  6. double minDotDistance = 22.0,
  7. double strengthFactor = 1.0,
  8. Duration duration = const Duration(milliseconds: 1200),
  9. Curve curve = Curves.linear,
  10. Widget? child,
})

Implementation

const DotBackground({
  super.key,
  this.isLoading = false,
  this.color,
  this.dotRadius = 1.0,
  this.direction = AxisDirection.up,
  this.minDotDistance = 22.0,
  this.strengthFactor = 1.0,
  super.duration = const Duration(milliseconds: 1200),
  super.curve = Curves.linear,
  this.child,
}) : super(
        target: isLoading ? null : 1.0,
        reverse: false,
      );