MiuixWindowDropdownMenu.entries constructor

const MiuixWindowDropdownMenu.entries({
  1. Key? key,
  2. required List<MiuixDropdownEntry> entries,
  3. required String title,
  4. MiuixBasicComponentColors? titleColor,
  5. String? summary,
  6. MiuixBasicComponentColors? summaryColor,
  7. MiuixDropdownColors? dropdownColors,
  8. Widget? startAction,
  9. Widget? bottomAction,
  10. EdgeInsetsGeometry insideMargin = MiuixBasicComponentDefaults.insideMargin,
  11. double? maxHeight,
  12. bool enabled = true,
  13. bool? collapseOnSelection,
  14. ValueChanged<bool>? onExpandedChange,
})

窗口级下拉菜单(多分组)。对应 Kotlin WindowDropdownMenu(entries)

Implementation

const MiuixWindowDropdownMenu.entries({
  super.key,
  required this.entries,
  required this.title,
  this.titleColor,
  this.summary,
  this.summaryColor,
  this.dropdownColors,
  this.startAction,
  this.bottomAction,
  this.insideMargin = MiuixBasicComponentDefaults.insideMargin,
  this.maxHeight,
  this.enabled = true,
  this.collapseOnSelection,
  this.onExpandedChange,
}) : entry = null;