MiuixWindowSpinnerPreference constructor
const
MiuixWindowSpinnerPreference({
- Key? key,
- required List<
MiuixDropdownItem> items, - required int selectedIndex,
- required String title,
- String? dialogButtonString,
- MiuixBasicComponentColors? titleColor,
- String? summary,
- MiuixBasicComponentColors? summaryColor,
- MiuixDropdownColors? spinnerColors,
- Widget? startAction,
- Widget? bottomAction,
- EdgeInsetsGeometry insideMargin = MiuixBasicComponentDefaults.insideMargin,
- double? maxHeight,
- bool enabled = true,
- bool showValue = true,
- bool? collapseOnSelection,
- ValueChanged<
bool> ? onExpandedChange, - 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>[];