SpinKitSquareCircle constructor

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

Implementation

const SpinKitSquareCircle({
  super.key,
  this.color,
  this.size = 50.0,
  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');