CustomRadioGroup constructor

const CustomRadioGroup({
  1. Key? key,
  2. String? label,
  3. TextStyle? labelStyle,
  4. required Map<String, String> items,
  5. String? selectedKey,
  6. String? errorMsg,
  7. Color? errorColor,
  8. void onChanged(
    1. String key,
    2. String value
    )?,
  9. Color? radioActiveColor,
  10. Color? radioBorderColor,
  11. Color? textColor,
  12. bool isDisabled = false,
  13. bool isOptionalMark = false,
  14. Color? disabledTextColor,
  15. Color? disabledRadioColor,
  16. RadioGroupLayout layout = RadioGroupLayout.vertical,
  17. bool showAsCards = false,
})

Implementation

const CustomRadioGroup({
  Key? key,
  this.label,
  this.labelStyle,
  required this.items,
  this.selectedKey,
  this.errorMsg,
  this.errorColor,
  this.onChanged,
  this.radioActiveColor,
  this.radioBorderColor,
  this.textColor,
  this.isDisabled = false,
  this.isOptionalMark = false,
  this.disabledTextColor,
  this.disabledRadioColor,
  this.layout = RadioGroupLayout.vertical,
  this.showAsCards = false,
}) : super(key: key);