ToggleButtonGroup<T, P> constructor

const ToggleButtonGroup<T, P>({
  1. required List<SelectOption<T, P>> options,
  2. required T? value,
  3. required void onChange(
    1. T? value
    ),
  4. Widget buttonBuilder(
    1. BuildContext context,
    2. SelectOption<T, P> option,
    3. bool isActive
    )?,
  5. double spacing = 8.0,
  6. double runSpacing = 8.0,
  7. WrapAlignment wrapAlignment = WrapAlignment.start,
  8. WrapCrossAlignment wrapCrossAxisAlignment = WrapCrossAlignment.center,
  9. bool isDisabled = false,
  10. bool scrollable = false,
  11. ScrollController? scrollController,
  12. MainAxisAlignment scrollAlignment = MainAxisAlignment.start,
  13. CrossAxisAlignment scrollCrossAlignment = CrossAxisAlignment.center,
  14. EdgeInsetsGeometry? scrollPadding,
  15. ScrollPhysics? scrollPhysics,
  16. Clip clipBehavior = Clip.hardEdge,
  17. Key? key,
})

Implementation

const ToggleButtonGroup({
  required this.options,
  required this.value,
  required this.onChange,
  this.buttonBuilder,
  this.spacing = 8.0,
  this.runSpacing = 8.0,
  this.wrapAlignment = WrapAlignment.start,
  this.wrapCrossAxisAlignment = WrapCrossAlignment.center,
  this.isDisabled = false,
  this.scrollable = false,
  this.scrollController,
  this.scrollAlignment = MainAxisAlignment.start,
  this.scrollCrossAlignment = CrossAxisAlignment.center,
  this.scrollPadding,
  this.scrollPhysics,
  this.clipBehavior = Clip.hardEdge,
  super.key,
});