SpinKit constructor
const
SpinKit(
- SpinKitStyle style, {
- Key? key,
- double size = 50,
- int itemCount = 6,
- double? lineWidth,
- double borderWidth = 6,
- double? strokeWidth,
- Color? color,
- BoxShape shape = BoxShape.circle,
- SpinKitPianoWaveType waveType = SpinKitPianoWaveType.start,
- IndexedWidgetBuilder? itemBuilder,
- Duration duration = const Duration(milliseconds: 1200),
- Duration delay = const Duration(milliseconds: 50),
- Color trackColor = const Color(0x68757575),
- Color waveColor = const Color(0x68757575),
- Curve curve = Curves.decelerate,
- 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});