EasyDropdownConfig constructor

const EasyDropdownConfig({
  1. double? radius,
  2. Color? backgroundColor,
  3. double? tileHeight,
  4. double? dropdownWidth,
  5. double? dropdownHeight,
  6. EasyDropdownAlignment? dropdownAlignment,
  7. EasyDropdownDirection? dropdownDirection,
  8. double? buttonMargin,
  9. bool? showDividers,
  10. DividerBuilder? dividerBuilder,
  11. Duration? animationDuration,
  12. double? dropdownElevation,
})

Creates an instance of EasyDropdownConfig with optional parameters.

radius: Radius for rounding the corners of the dropdown. If null, the default is FloatingActionButtonThemeData.shape.

backgroundColor: Background color of the dropdown. If null, the default is ColorScheme.surfaceVariant.

tileHeight: Height of individual tiles in the dropdown list. If null, the default is 56.

dropdownWidth: Width of the dropdown.

dropdownHeight: Height of the dropdown.

dropdownAlignment: Alignment of the dropdown relative to the button. If null, the default is EasyDropdownAlignment.center.

dropdownDirection: Direction of the dropdown. Use EasyDropdownDirection enum to specify the direction. If null, the dropdown will follow the default direction.

buttonMargin: The margin between the button and the dropdown.

showDividers: Whether to display dividers between items.

dividerBuilder: Builder function for custom dividers. Defaults to Divider if null

animationDuration: The duration for the dropdown animation. If null, the default is 160 milliseconds.

dropdownElevation: The elevation of the dropdown menu. Controls the shadow depth of the dropdown. A higher value will make the dropdown appear elevated above the surrounding content. If null, the default is 2.

Implementation

const EasyDropdownConfig({
  this.radius,
  this.backgroundColor,
  this.tileHeight,
  this.dropdownWidth,
  this.dropdownHeight,
  this.dropdownAlignment,
  this.dropdownDirection,
  this.buttonMargin,
  this.showDividers,
  this.dividerBuilder,
  this.animationDuration,
  this.dropdownElevation,
});