MiuixOverlayDropdownPreference constructor

const MiuixOverlayDropdownPreference({
  1. Key? key,
  2. required List<String> items,
  3. required int selectedIndex,
  4. required String title,
  5. MiuixBasicComponentColors? titleColor,
  6. String? summary,
  7. MiuixBasicComponentColors? summaryColor,
  8. MiuixDropdownColors? dropdownColors,
  9. Widget? startAction,
  10. Widget? bottomAction,
  11. EdgeInsetsGeometry insideMargin = MiuixBasicComponentDefaults.insideMargin,
  12. double? maxHeight,
  13. bool enabled = true,
  14. bool showValue = true,
  15. bool renderInRootScaffold = true,
  16. bool? collapseOnSelection = true,
  17. ValueChanged<bool>? onExpandedChange,
  18. ValueChanged<int>? onSelectedIndexChange,
})

Implementation

const MiuixOverlayDropdownPreference({
  super.key,
  required this.items,
  required this.selectedIndex,
  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.showValue = true,
  this.renderInRootScaffold = true,
  this.collapseOnSelection = true,
  this.onExpandedChange,
  this.onSelectedIndexChange,
})  : entry = null,
      entries = const <MiuixDropdownEntry>[];