S360fToggle constructor

const S360fToggle({
  1. required List<CustomRadioOption> options,
  2. required dynamic selectedValue,
  3. required void onChanged(
    1. dynamic
    ),
  4. Key? key,
  5. String? title,
  6. bool isRequired = false,
  7. double height = 40,
  8. double borderRadius = 20,
  9. EdgeInsets optionPadding = const EdgeInsets.symmetric(horizontal: 12),
  10. bool readonly = false,
  11. String? errorMessage,
  12. bool isError = false,
})

Implementation

const S360fToggle({
  required this.options,
  required this.selectedValue,
  required this.onChanged,
  super.key,
  this.title,
  this.isRequired = false,
  this.height = 40,
  this.borderRadius = 20,
  this.optionPadding = const EdgeInsets.symmetric(horizontal: 12),
  this.readonly = false,
  this.errorMessage,
  this.isError = false,
});