CardSettingsSelectionPicker<T> constructor
CardSettingsSelectionPicker<T> ({
- Key? key,
- T? initialItem,
- FormFieldSetter<
T> ? onSaved, - FormFieldValidator<
T> ? validator, - AutovalidateMode autovalidateMode = AutovalidateMode.onUserInteraction,
- bool enabled = true,
- String label = 'Label',
- bool visible = true,
- ValueChanged<
T> ? onChanged, - Widget? requiredIndicator,
- TextAlign? labelAlign,
- double? labelWidth,
- Icon? icon,
- TextAlign? contentAlign,
- String? hintText,
- required List<
T> items, - bool? showMaterialonIOS,
- EdgeInsetsGeometry? fieldPadding,
- Iconizer<
T?> ? iconizer,
Implementation
CardSettingsSelectionPicker({
Key? key,
T? initialItem,
FormFieldSetter<T>? onSaved,
FormFieldValidator<T>? 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.items,
this.showMaterialonIOS,
this.fieldPadding,
this.iconizer,
}) : super(
key: key,
initialValue: initialItem ?? null,
onSaved: onSaved,
validator: validator,
// autovalidate: autovalidate,
autovalidateMode: autovalidateMode,
builder: (FormFieldState<T> field) =>
(field as _CardSettingsListPickerState)._build(field.context));