ReadyPicker<T, Args, TController extends ReadyPickerController<T, Args> >.buildItem constructor
ReadyPicker<T, Args, TController extends ReadyPickerController<T, Args> >.buildItem ({
- InputDecoration decoration = const InputDecoration(),
- required TController controller,
- Key? key,
- TextStyle? textStyle,
- FormFieldSetter<
T> ? onSaved, - FormFieldSetter<
T> ? onChanged, - FormFieldValidator<
T> ? validator, - T? initialValue,
- AutovalidateMode? autovalidateMode,
- int? maxLines,
- TextAlign textAlign = TextAlign.start,
- bool enabled = true,
- Future<
T> showItems(- BuildContext context,
- Widget child
- FocusNode? focusNode,
- required Widget buildItem(
- TController controller,
- T? item,
- bool selected,
- VoidCallback onTap,
Implementation
ReadyPicker.buildItem({
this.decoration = const InputDecoration(),
required this.controller,
Key? key,
this.textStyle,
this.onSaved,
this.onChanged,
this.validator,
this.initialValue,
this.autovalidateMode,
this.maxLines,
this.textAlign = TextAlign.start,
this.enabled = true,
this.showItems,
this.focusNode,
required Widget Function(
TController controller, T? item, bool selected, VoidCallback onTap)
buildItem,
}) : builder = null,
activeColor = null,
itemTextStyle = null,
inActiveColor = null,
_buildItem = buildItem,
super(key: key, child: SingleField<T, Args, TController>());