VitComboBox<T>.rawBuilder constructor
VitComboBox<T>.rawBuilder ({
- required Widget optionsBuilder(
- OverlayEntry entry
- required Widget selectedItemBuilder(),
- void onClose()?,
- String? label,
- VitComboBoxStyle? style,
- T? selection,
- Widget? trailing,
- bool enabled = true,
Creates a combobox with a custom option overlay by providing
optionsBuilder
.
Implementation
factory VitComboBox.rawBuilder({
required Widget Function(OverlayEntry entry) optionsBuilder,
required Widget Function() selectedItemBuilder,
void Function()? onClose,
String? label,
VitComboBoxStyle? style,
T? selection,
Widget? trailing,
bool enabled = true,
}) {
return VitComboBox._(
label: label,
optionsBuilder: optionsBuilder,
selectedItemBuilder: (_) => selectedItemBuilder(),
onClose: onClose,
style: style,
enabled: enabled,
selection: selection,
trailing: trailing,
);
}