ZetaDropdown<T> constructor
- Key? key,
- bool? rounded,
- required List<
ZetaDropdownItem< items,T> > - ValueSetter<
ZetaDropdownItem< ? onChange,T> > - @Deprecated('Set onChange to null. ' 'Disabled is deprecated as of 0.11.0') bool disabled = false,
- T? value,
- ZetaDropdownMenuType type = ZetaDropdownMenuType.standard,
- ZetaDropdownSize size = ZetaDropdownSize.standard,
- Offset offset = Offset.zero,
- Widget builder(
- BuildContext context,
- ZetaDropdownItem<
T> ? selectedItem, - ZetaDropdownController controller
- VoidCallback? onDismissed,
- VoidCallback? onOpen,
- String? semanticDropdownLabel,
- bool disableButtonSemantics = false,
Creates a new ZetaDropdown.
Implementation
const ZetaDropdown({
super.key,
super.rounded,
required this.items,
this.onChange,
@Deprecated('Set onChange to null. ' 'Disabled is deprecated as of 0.11.0') bool disabled = false,
this.value,
this.type = ZetaDropdownMenuType.standard,
this.size = ZetaDropdownSize.standard,
this.offset = Offset.zero,
this.builder,
this.onDismissed,
this.onOpen,
this.semanticDropdownLabel,
this.disableButtonSemantics = false,
});