SpinKitRipple constructor

const SpinKitRipple({
  1. Key? key,
  2. Color? color,
  3. double size = 50.0,
  4. double borderWidth = 6.0,
  5. IndexedWidgetBuilder? itemBuilder,
  6. Duration duration = const Duration(milliseconds: 1800),
  7. AnimationController? controller,
})

Implementation

const SpinKitRipple({
  super.key,
  this.color,
  this.size = 50.0,
  this.borderWidth = 6.0,
  this.itemBuilder,
  this.duration = const Duration(milliseconds: 1800),
  this.controller,
}) : assert(
          !(itemBuilder is IndexedWidgetBuilder && color is Color) &&
              !(itemBuilder == null && color == null),
          'You should specify either a itemBuilder or a color');