WidgetDotFade constructor

const WidgetDotFade({
  1. Key? key,
  2. Color? color,
  3. double size = 18.0,
  4. int count = 3,
  5. IndexedWidgetBuilder? itemBuilder,
  6. Duration duration = const Duration(milliseconds: 500),
  7. AnimationController? controller,
})

Implementation

const WidgetDotFade({
  Key? key,
  this.color,
  this.size = 18.0,
  this.count = 3,
  this.itemBuilder,
  this.duration = const Duration(milliseconds: 500),
  this.controller,
})  : assert(!(itemBuilder is IndexedWidgetBuilder && color is Color) && !(itemBuilder == null && color == null),
'You should specify either a itemBuilder or a color'),
      super(key: key);