MiuixOverlaySpinnerPreference constructor

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

Implementation

const MiuixOverlaySpinnerPreference({
  super.key,
  required this.items,
  required this.selectedIndex,
  required this.title,
  this.dialogButtonString,
  this.titleColor,
  this.summary,
  this.summaryColor,
  this.spinnerColors,
  this.startAction,
  this.bottomAction,
  this.insideMargin = MiuixBasicComponentDefaults.insideMargin,
  this.maxHeight,
  this.enabled = true,
  this.showValue = true,
  this.renderInRootScaffold = true,
  this.collapseOnSelection,
  this.onExpandedChange,
  this.onSelectedIndexChange,
})  : entry = null,
      entries = const <MiuixDropdownEntry>[];