MiuixOverlayIconDropdownMenu constructor

const MiuixOverlayIconDropdownMenu({
  1. Key? key,
  2. required MiuixDropdownEntry? entry,
  3. bool enabled = true,
  4. double? maxHeight,
  5. MiuixDropdownColors? dropdownColors,
  6. bool renderInRootScaffold = true,
  7. bool? collapseOnSelection = true,
  8. ValueChanged<bool>? onExpandedChange,
  9. Color? backgroundColor,
  10. double cornerRadius = MiuixIconButtonDefaults.cornerRadius,
  11. double minHeight = MiuixIconButtonDefaults.minHeight,
  12. double minWidth = MiuixIconButtonDefaults.minWidth,
  13. required Widget child,
})

Implementation

const MiuixOverlayIconDropdownMenu({
  super.key,
  required this.entry,
  this.enabled = true,
  this.maxHeight,
  this.dropdownColors,
  this.renderInRootScaffold = true,
  this.collapseOnSelection = true,
  this.onExpandedChange,
  this.backgroundColor,
  this.cornerRadius = MiuixIconButtonDefaults.cornerRadius,
  this.minHeight = MiuixIconButtonDefaults.minHeight,
  this.minWidth = MiuixIconButtonDefaults.minWidth,
  required this.child,
}) : entries = const <MiuixDropdownEntry>[];