SelectableGroup constructor
const
SelectableGroup({
- Key? key,
- required int itemCount,
- required Widget itemBuilder(
- BuildContext context,
- int index,
- bool isSelected
- bool multiple = false,
- dynamic defaultValue,
- bool enable = true,
- VoidCallback? onDisabledTap,
- void onSelectionChanged()?,
- int mutualExclusionIndex = -1,
- bool enableFirstTrigger = false,
- SelectableController? controller,
- SelectableLayout layout = SelectableLayout.column,
- double spacing = 8,
- double runSpacing = 8,
- int crossAxisCount = 2,
- double mainAxisSpacing = 10,
- double crossAxisSpacing = 10,
- double childAspectRatio = 1.2,
Implementation
const SelectableGroup({
super.key,
required this.itemCount,
required this.itemBuilder,
this.multiple = false,
this.defaultValue,
this.enable = true,
this.onDisabledTap,
this.onSelectionChanged,
this.mutualExclusionIndex = -1,
this.enableFirstTrigger = false,
this.controller,
this.layout = SelectableLayout.column,
this.spacing = 8,
this.runSpacing = 8,
this.crossAxisCount = 2,
this.mainAxisSpacing = 10,
this.crossAxisSpacing = 10,
this.childAspectRatio = 1.2,
});