BsDropdown constructor
const
BsDropdown({
- Key? key,
- String? label,
- Widget? toggle,
- Widget toggleBuilder(
- BuildContext context,
- VoidCallback toggleMenu,
- bool isOpen
- BsDropdownDirection direction = .down,
- BsDropdownAlignment alignment = .start,
- BsDropdownAutoClose autoClose = .always,
- BsButtonVariant toggleVariant = .primary,
- BsButtonSize toggleSize = .md,
- bool showCaret = true,
- bool disabled = false,
- bool outline = false,
Creates a BsDropdown widget.
Implementation
const BsDropdown({
super.key,
this.label,
this.toggle,
this.toggleBuilder,
required this.menu,
this.direction = .down,
this.alignment = .start,
this.autoClose = .always,
this.toggleVariant = .primary,
this.toggleSize = .md,
this.showCaret = true,
this.disabled = false,
this.outline = false,
}) : assert(toggle != null || toggleBuilder != null || label != null,
'Either toggle, toggleBuilder, or label must be provided');