EasyDropdown constructor

const EasyDropdown({
  1. Key? key,
  2. required Widget child,
  3. required FutureOr<List<EasyDropdownTile>> items,
  4. double? itemCount,
  5. EasyDropdownConfig config = const EasyDropdownConfig(),
  6. VoidCallback? onDropdownStart,
  7. 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,
});