LoaderWave constructor
const
LoaderWave({
- Key? key,
- Color? color,
- LoaderWaveType? type = LoaderWaveType.start,
- double? size = 50.0,
- IndexedWidgetBuilder? itemBuilder,
- int itemCount = 5,
- Duration? duration = const Duration(milliseconds: 1200),
- AnimationController? controller,
Implementation
const LoaderWave({
Key? key,
this.color,
this.type = LoaderWaveType.start,
this.size = 50.0,
this.itemBuilder,
this.itemCount = 5,
this.duration = const Duration(milliseconds: 1200),
this.controller,
}) : assert(
!(itemBuilder is IndexedWidgetBuilder && color is Color) &&
!(itemBuilder == null && color == null),
'You should specify either a itemBuilder or a color'),
assert(itemCount >= 2, 'itemCount Cant be less then 2 '),
super(key: key);