DropdownFieldBlocBuilder<Value> constructor
const
DropdownFieldBlocBuilder<Value> ({
- Key? key,
- required SelectFieldBloc<
Value, dynamic> selectFieldBloc, - required FieldItemBuilder<
Value> itemBuilder, - ItemBuilder<
Value> ? selectedItemBuilder, - bool enableOnlyWhenFormBlocCanSubmit = false,
- bool isEnabled = true,
- EdgeInsetsGeometry? padding,
- InputDecoration decoration = const InputDecoration(),
- FieldBlocErrorBuilder? errorBuilder,
- bool showEmptyItem = true,
- FocusNode? nextFocusNode,
- FocusNode? focusNode,
- TextAlign? textAlign,
- bool animateWhenCanShow = true,
- String emptyItemLabel = '',
- ValueChanged<
Value?> ? onChanged, - TextStyle? textStyle,
- MaterialStateProperty<
Color?> ? textColor, - TextOverflow? textOverflow,
- int? maxLines,
- TextStyle? selectedTextStyle,
- int? selectedMaxLines,
- bool isExpanded = true,
- Widget? hint,
- 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);