ZetaDropdown<T> constructor

const ZetaDropdown<T>({
  1. Key? key,
  2. bool? rounded,
  3. required List<ZetaDropdownItem<T>> items,
  4. ValueSetter<ZetaDropdownItem<T>>? onChange,
  5. @Deprecated('Set onChange to null. ' 'Disabled is deprecated as of 0.11.0') bool disabled = false,
  6. T? value,
  7. ZetaDropdownMenuType type = ZetaDropdownMenuType.standard,
  8. ZetaDropdownSize size = ZetaDropdownSize.standard,
  9. Offset offset = Offset.zero,
  10. Widget builder(
    1. BuildContext context,
    2. ZetaDropdownItem<T>? selectedItem,
    3. ZetaDropdownController controller
    )?,
  11. VoidCallback? onDismissed,
  12. VoidCallback? onOpen,
  13. String? semanticDropdownLabel,
  14. 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,
});