SettingsPage.device constructor

SettingsPage.device({
  1. required List<Control> settings,
  2. Widget controlWrapper(
    1. Widget child,
    2. Control setting, {
    3. bool partOfGroup,
    })?,
  3. Widget groupWrapper(
    1. Widget child,
    2. Control setting
    )?,
  4. bool loadFromPrefs = true,
  5. Future<void> onSave(
    1. List<Control>
    )?,
  6. bool saveToPrefs = true,
  7. 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,
    );