FormItemSelectBuilder constructor

FormItemSelectBuilder({
  1. required List<Widget> builder(
    1. BuildContext context,
    2. Map<String, String> items,
    3. String selected,
    4. void onSelect(
      1. String value
      ),
    ),
  2. String? labelText,
  3. String? initialValue,
  4. String? hintText,
  5. TextEditingController? controller,
  6. Widget? header,
  7. Widget? footer,
  8. required Map<String, String> items,
  9. void onPressed(
    1. void onUpdate(
      1. dynamic fileOrURL,
      2. AssetType type
      )
    )?,
  10. Key? key,
  11. void onSaved(
    1. String? value
    )?,
  12. String? validator(
    1. String? value
    )?,
  13. 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,
      );