FormItemSelectBuilder constructor
FormItemSelectBuilder({
- required List<
Widget> builder(), - String? labelText,
- String? initialValue,
- String? hintText,
- TextEditingController? controller,
- Widget? header,
- required Map<
String, String> items, - void onPressed(
- void onUpdate(
- dynamic fileOrURL,
- AssetType type
- void onUpdate(
- Key? key,
- void onSaved(
- String? value
- String? validator(
- String? value
- bool enabled = true,
Implementation
FormItemSelectBuilder({
required List<Widget> Function(
BuildContext context,
Map<String, String> items,
String selected,
void Function(String value) onSelect)
builder,
this.labelText,
String? initialValue,
this.hintText,
this.controller,
this.header,
this.footer,
required this.items,
this.onPressed,
Key? key,
void Function(String? value)? onSaved,
String? Function(String? value)? validator,
bool enabled = true,
}) : _builder = builder,
super(
key: key,
builder: (state) {
return const Empty();
},
onSaved: onSaved,
validator: validator,
initialValue: controller != null ? controller.text : initialValue,
enabled: enabled,
);