SpinKitCubeGrid constructor

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

Implementation

const SpinKitCubeGrid({
  Key key,
  this.color,
  this.size = 50.0,
  this.itemBuilder,
  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(size != null),
      super(key: key);