SpinKit constructor

const SpinKit(
  1. SpinKitStyle style, {
  2. Key? key,
  3. double size = 50,
  4. int itemCount = 6,
  5. double? lineWidth,
  6. double borderWidth = 6,
  7. double? strokeWidth,
  8. Color? color,
  9. BoxShape shape = BoxShape.circle,
  10. SpinKitPianoWaveType waveType = SpinKitPianoWaveType.start,
  11. IndexedWidgetBuilder? itemBuilder,
  12. Duration duration = const Duration(milliseconds: 1200),
  13. Duration delay = const Duration(milliseconds: 50),
  14. Color trackColor = const Color(0x68757575),
  15. Color waveColor = const Color(0x68757575),
  16. Curve curve = Curves.decelerate,
  17. AnimationController? controller,
})

Implementation

const SpinKit(this.style,
    {super.key,
    this.size = 50,
    this.itemCount = 6,
    this.lineWidth,
    this.borderWidth = 6,
    this.strokeWidth,
    this.color,
    this.shape = BoxShape.circle,
    this.waveType = SpinKitPianoWaveType.start,
    this.itemBuilder,
    this.duration = const Duration(milliseconds: 1200),
    this.delay = const Duration(milliseconds: 50),
    this.trackColor = const Color(0x68757575),
    this.waveColor = const Color(0x68757575),
    this.curve = Curves.decelerate,
    this.controller});