CircleBNB constructor

const CircleBNB({
  1. Key? key,
  2. required Size size,
  3. List<Color>? colorList,
  4. required double dragSpeed,
  5. required List<CircleBNBItem> items,
  6. required dynamic onChangeIndex(
    1. int index
    ),
})

Implementation

const CircleBNB({
  super.key,
  required this.size,
  this.colorList,
  required this.dragSpeed,
  required this.items,
  required this.onChangeIndex
}) : assert(colorList == null || colorList.length == 4, 'colorList must be null or have more than 4 elements.');