CardSettingsRadioPicker constructor
CardSettingsRadioPicker({
- Key? key,
- String? initialValue,
- FormFieldSetter<
String> ? onSaved, - FormFieldValidator<
String> ? validator, - AutovalidateMode autovalidateMode = AutovalidateMode.onUserInteraction,
- bool enabled = true,
- String label = 'Label',
- bool visible = true,
- ValueChanged<
String> ? onChanged, - Widget? requiredIndicator,
- TextAlign? labelAlign,
- double? labelWidth,
- Icon? icon,
- TextAlign? contentAlign,
- String? hintText,
- required List<
String> options, - List<
String> ? values, - bool? showMaterialonIOS,
- EdgeInsetsGeometry? fieldPadding,
Implementation
CardSettingsRadioPicker({
Key? key,
String? initialValue,
FormFieldSetter<String>? onSaved,
FormFieldValidator<String>? validator,
// bool autovalidate: false,
AutovalidateMode autovalidateMode: AutovalidateMode.onUserInteraction,
this.enabled = true,
this.label = 'Label',
this.visible = true,
this.onChanged,
this.requiredIndicator,
this.labelAlign,
this.labelWidth,
this.icon,
this.contentAlign,
this.hintText,
required this.options,
this.values,
this.showMaterialonIOS,
this.fieldPadding,
}) : assert(values == null || options.length == values.length,
"If you provide 'values', they need the same number as 'options'"),
super(
key: key,
initialValue: initialValue ?? null,
onSaved: onSaved,
validator: validator,
// autovalidate: autovalidate,
autovalidateMode: autovalidateMode,
builder: (FormFieldState<String> field) =>
(field as _CardSettingsRadioPickerState)._build(field.context));