Field.radio constructor
      
      Field.radio(
    
- String key, {
 - String? label,
 - dynamic value,
 - FormValidator? validate,
 - bool autofocus = false,
 - String? dummyData,
 - Widget? header,
 - dynamic style,
 - Map<
String, NyTextField Function(NyTextField nyTextField)> ? metaData = const {}, - bool? readOnly,
 - required List<
String> options, - NyRadioTileStyle? nyRadioTileStyle,
 
Field.radio is a constructor that helps in managing radio fields
Implementation
Field.radio(
  this.key, {
  this.label,
  this.value,
  this.validate,
  this.autofocus = false,
  this.dummyData,
  this.header,
  this.footer,
  this.style,
  this.metaData = const {},
  this.hidden = false,
  this.readOnly,
  required List<String> options,
  NyRadioTileStyle? nyRadioTileStyle,
}) : cast = FormCast.radio(
          options: options, nyRadioTileStyle: nyRadioTileStyle) {
  if (style == null) return;
  metaData = {};
  if (style is String) {
    style = style;
    return;
  }
  if (style is Map) {
    style as Map<String, dynamic>;
    metaData!["decoration_style"] =
        (style as Map<String, dynamic>).entries.first.value;
    style = (style as Map<String, dynamic>).entries.first.key;
  }
}