SimpleDropdown<T>.custom constructor

SimpleDropdown<T>.custom({
  1. Key? key,
  2. required WidgetBuilder builder,
  3. required DropdownController<T> controller,
  4. required DropdownMenuBuilder<T> menuBuilder,
  5. BoxConstraints? menuConstraints,
  6. BoxDecoration? menuDecoration,
  7. bool enableListen = true,
  8. DropdownMenuPosition menuPosition = const DropdownMenuPosition(),
  9. bool crossAxisConstrained = true,
  10. bool dismissible = true,
  11. bool enabled = true,
})

Implementation

SimpleDropdown.custom({
  super.key,
  required this.builder,
  required this.controller,

  /// The builder that will be used to build the dropdown menu.
  required DropdownMenuBuilder<T> menuBuilder,
  this.menuConstraints,
  this.menuDecoration,
  this.enableListen = true,
  this.menuPosition = const DropdownMenuPosition(),
  this.crossAxisConstrained = true,
  this.dismissible = true,
  this.enabled = true,
}) : delegate = CustomMenuBuilderDelegate<T>(menuBuilder);