LoadingFlipping.square constructor
LoadingFlipping.square({
- Key? key,
- AnimationController? controller,
- Color borderColor = Colors.blueGrey,
- Color backgroundColor = Colors.transparent,
- double size = 50.0,
- double? borderSize,
- IndexedWidgetBuilder? itemBuilder,
- Duration duration = const Duration(milliseconds: 1500),
Creates the LoadingFlipping animation with a square shape
Implementation
LoadingFlipping.square({
Key? key,
this.controller,
this.borderColor = Colors.blueGrey,
this.backgroundColor = Colors.transparent,
this.size = 50.0,
this.borderSize,
this.itemBuilder,
this.duration = const Duration(milliseconds: 1500),
}) : assert(borderSize != null ? borderSize <= size / 2 : true,
'loading_animations: property [borderSize] must not be greater than half the widget size'), _shape = BoxShape.rectangle,
super(key: key);