CardSettingsSelectionPicker constructor
CardSettingsSelectionPicker({
- 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<
Icon> ? icons, - List<
String> ? values, - bool? showMaterialonIOS,
- EdgeInsetsGeometry? fieldPadding,
Implementation
CardSettingsSelectionPicker({
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.icons,
this.values,
this.showMaterialonIOS,
this.fieldPadding,
}) : assert(values == null || options.length == values.length,
"If you provide 'values', they need the same number as 'options'"),
assert(icons == null || options.length == icons.length,
"If you provide 'icons', 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 _CardSettingsListPickerState)._build(field.context));