BZSelectGroup<T> constructor

BZSelectGroup<T>({
  1. Key? key,
  2. required List<SelectItem<T>> items,
  3. Axis direction = Axis.horizontal,
  4. Color borderColor = Colors.transparent,
  5. Color selectColor = Colors.blue,
  6. Color unSelectColor = Colors.white,
  7. Color selectTextColor = Colors.white,
  8. Color unSelectTextColor = Colors.grey,
  9. double fontSize = 12,
  10. SelectType type = SelectType.single,
  11. BorderRadius? borderRadius,
  12. List<int>? listIndex,
  13. OnSingleSelect<T>? onSingleSelect,
  14. OnMultipleSelect<T>? onMultipleSelect,
  15. bool isRepeatBorderLine = false,
  16. double spacing = 10.0,
  17. double runSpacing = -5.0,
  18. int maxSelectCount = 3,
  19. BZSelectGroupItemBuilder<T>? itemBuilder,
  20. Size? minItemSize,
  21. EdgeInsetsGeometry? itemPadding,
  22. bool scrollable = false,
})

Implementation

BZSelectGroup({
  Key? key,
  required this.items,
  this.direction = Axis.horizontal,
  this.borderColor = Colors.transparent,
  this.selectColor = Colors.blue,
  this.unSelectColor = Colors.white,
  this.selectTextColor = Colors.white,
  this.unSelectTextColor = Colors.grey,
  this.fontSize = 12,
  this.type = SelectType.single,
  this.borderRadius,
  List<int>? listIndex,
  this.onSingleSelect,
  this.onMultipleSelect,
  this.isRepeatBorderLine = false,
  this.spacing = 10.0,
  this.runSpacing = -5.0,
  this.maxSelectCount = 3,
  this.itemBuilder,
  this.minItemSize,
  this.itemPadding,
  this.scrollable = false,
}) : super(key: key) {
  this.listIndex = listIndex ?? [];
}