SettingsPage.device constructor
SettingsPage.device({ - required List<Control> settings,
- Widget controlWrapper(
- Widget child,
- Control setting, {
- bool partOfGroup,
})?,
- Widget groupWrapper(
- Widget child,
- Control setting
)?,
- bool loadFromPrefs = true,
- Future<void> onSave(
- List<Control>
)?,
- bool saveToPrefs = true,
- ThemeData? theme,
})
Implementation
factory SettingsPage.device({
required List<Control> settings,
Widget Function(Widget child, Control setting, {bool partOfGroup})?
controlWrapper,
Widget Function(Widget child, Control setting)? groupWrapper,
bool loadFromPrefs = true,
Future<void> Function(List<Control>)? onSave,
bool saveToPrefs = true,
ThemeData? theme,
}) =>
DeviceSettingsPage(
settings: settings,
controlWrapper: controlWrapper,
groupWrapper: groupWrapper,
onSave: onSave,
saveToPrefs: saveToPrefs,
loadFromPrefs: loadFromPrefs,
theme: theme,
);