BZSelectGroup<T> constructor
BZSelectGroup<T> ({
- Key? key,
- required List<
SelectItem< items,T> > - Axis direction = Axis.horizontal,
- Color borderColor = Colors.transparent,
- Color selectColor = Colors.blue,
- Color unSelectColor = Colors.white,
- Color selectTextColor = Colors.white,
- Color unSelectTextColor = Colors.grey,
- double fontSize = 12,
- SelectType type = SelectType.single,
- BorderRadius? borderRadius,
- List<
int> ? listIndex, - OnSingleSelect<
T> ? onSingleSelect, - OnMultipleSelect<
T> ? onMultipleSelect, - bool isRepeatBorderLine = false,
- double spacing = 10.0,
- double runSpacing = -5.0,
- int maxSelectCount = 3,
- BZSelectGroupItemBuilder<
T> ? itemBuilder, - Size? minItemSize,
- EdgeInsetsGeometry? itemPadding,
- 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 ?? [];
}