SelectableGroup constructor

const SelectableGroup({
  1. Key? key,
  2. required int itemCount,
  3. required Widget itemBuilder(
    1. BuildContext context,
    2. int index,
    3. bool isSelected
    ),
  4. bool multiple = false,
  5. dynamic defaultValue,
  6. bool enable = true,
  7. VoidCallback? onDisabledTap,
  8. void onSelectionChanged(
    1. List<int> selected
    )?,
  9. int mutualExclusionIndex = -1,
  10. bool enableFirstTrigger = false,
  11. SelectableController? controller,
  12. SelectableLayout layout = SelectableLayout.column,
  13. double spacing = 8,
  14. double runSpacing = 8,
  15. int crossAxisCount = 2,
  16. double mainAxisSpacing = 10,
  17. double crossAxisSpacing = 10,
  18. 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,
});