EasyDropdown constructor
const
EasyDropdown({
- Key? key,
- required Widget child,
- required FutureOr<
List< items,EasyDropdownTile> > - double? itemCount,
- EasyDropdownConfig config = const EasyDropdownConfig(),
- VoidCallback? onDropdownStart,
- VoidCallback? onDropdownEnd,
Creates an instance of EasyDropdown.
The child parameter is required and represents the widget that will
trigger the dropdown when interacted with.
The items parameter is required and specifies the list of items to
display in the dropdown.
The itemCount parameter allows you to specify the maximum number of
items to display in the dropdown. If not provided, all items are displayed.
The config parameter allows you to customize the appearance and behavior
of the dropdown menu. It includes options such as radius, background color,
tile height, dropdown width, and more.
The onDropdownStart callback is invoked when the dropdown is opened.
The onDropdownEnd callback is invoked when the dropdown is closed.
Implementation
const EasyDropdown({
super.key,
required this.child,
required this.items,
this.itemCount,
this.config = const EasyDropdownConfig(),
this.onDropdownStart,
this.onDropdownEnd,
});