FlutstrapRadio<T> constructor

const FlutstrapRadio<T>({
  1. Key? key,
  2. required T value,
  3. required T? groupValue,
  4. ValueChanged<T?>? onChanged,
  5. FSRadioVariant variant = FSRadioVariant.primary,
  6. FSRadioSize size = FSRadioSize.md,
  7. String? label,
  8. Widget? customLabel,
  9. bool disabled = false,
  10. bool inline = false,
  11. String? semanticLabel,
  12. bool showValidation = false,
  13. bool isValid = true,
  14. String? validationMessage,
  15. Color? activeColor,
  16. Color? dotColor,
  17. VisualDensity? visualDensity,
  18. EdgeInsetsGeometry? padding,
})

Implementation

const FlutstrapRadio({
  super.key,
  required this.value,
  required this.groupValue,
  this.onChanged,
  this.variant = FSRadioVariant.primary,
  this.size = FSRadioSize.md,
  this.label,
  this.customLabel,
  this.disabled = false,
  this.inline = false,
  this.semanticLabel,
  this.showValidation = false,
  this.isValid = true,
  this.validationMessage,
  this.activeColor,
  this.dotColor,
  this.visualDensity,
  this.padding,
});