2020-05-12 17:00:35 +00:00
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
|
|
|
|
/// Application settings
|
|
|
|
///
|
|
|
|
/// @author Pierre Hubert
|
|
|
|
|
|
|
|
class ApplicationPreferences {
|
2020-05-12 17:27:23 +00:00
|
|
|
bool enableDarkMode;
|
2020-05-13 16:17:50 +00:00
|
|
|
bool forceMobileMode;
|
2020-05-13 16:26:21 +00:00
|
|
|
bool showPerformancesOverlay;
|
2020-05-12 17:00:35 +00:00
|
|
|
|
2020-05-12 17:27:23 +00:00
|
|
|
ApplicationPreferences({
|
2020-05-12 17:00:35 +00:00
|
|
|
@required this.enableDarkMode,
|
2020-05-13 16:17:50 +00:00
|
|
|
@required this.forceMobileMode,
|
2020-05-13 16:26:21 +00:00
|
|
|
@required this.showPerformancesOverlay,
|
2020-05-13 16:17:50 +00:00
|
|
|
}) : assert(enableDarkMode != null),
|
2020-05-13 16:26:21 +00:00
|
|
|
assert(forceMobileMode != null),
|
|
|
|
assert(showPerformancesOverlay != null);
|
2020-05-12 17:00:35 +00:00
|
|
|
}
|