DropdownFieldBlocBuilder<Value> constructor

const DropdownFieldBlocBuilder<Value>({
  1. Key? key,
  2. required SelectFieldBloc<Value, dynamic> selectFieldBloc,
  3. required FieldItemBuilder<Value> itemBuilder,
  4. ItemBuilder<Value>? selectedItemBuilder,
  5. bool enableOnlyWhenFormBlocCanSubmit = false,
  6. bool isEnabled = true,
  7. EdgeInsetsGeometry? padding,
  8. InputDecoration decoration = const InputDecoration(),
  9. FieldBlocErrorBuilder? errorBuilder,
  10. bool showEmptyItem = true,
  11. FocusNode? nextFocusNode,
  12. FocusNode? focusNode,
  13. TextAlign? textAlign,
  14. bool animateWhenCanShow = true,
  15. String emptyItemLabel = '',
  16. ValueChanged<Value?>? onChanged,
  17. TextStyle? textStyle,
  18. MaterialStateProperty<Color?>? textColor,
  19. TextOverflow? textOverflow,
  20. int? maxLines,
  21. TextStyle? selectedTextStyle,
  22. int? selectedMaxLines,
  23. bool isExpanded = true,
  24. Widget? hint,
  25. Widget? disabledHint,
})

Implementation

const DropdownFieldBlocBuilder({
  Key? key,
  required this.selectFieldBloc,
  required this.itemBuilder,
  this.selectedItemBuilder,
  this.enableOnlyWhenFormBlocCanSubmit = false,
  this.isEnabled = true,
  this.padding,
  this.decoration = const InputDecoration(),
  this.errorBuilder,
  this.showEmptyItem = true,
  this.nextFocusNode,
  this.focusNode,
  this.textAlign,
  this.animateWhenCanShow = true,
  this.emptyItemLabel = '',
  this.onChanged,
  this.textStyle,
  this.textColor,
  this.textOverflow,
  this.maxLines,
  this.selectedTextStyle,
  this.selectedMaxLines,
  this.isExpanded = true,
  this.hint,
  this.disabledHint,
}) : super(key: key);