validateRadioGroup static method
Implementation
static String? validateRadioGroup(
String? selectedKey, {
String fieldName = 'option',
}) {
if (selectedKey == null || selectedKey.isEmpty) {
return 'Please select $fieldName';
}
return null;
}