MiuixWindowSpinnerPreference constructor

const MiuixWindowSpinnerPreference({
  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? collapseOnSelection,
  17. ValueChanged<bool>? onExpandedChange,
  18. ValueChanged<int>? onSelectedIndexChange,
})

Implementation

const MiuixWindowSpinnerPreference({
  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.collapseOnSelection,
  this.onExpandedChange,
  this.onSelectedIndexChange,
})  : entry = null,
      entries = const <MiuixDropdownEntry>[];