Save preferences to same directory to binary file on Windows

This commit is contained in:
2023-08-30 22:09:39 +08:00
parent 63b5e9f71e
commit 6f3a400ed8
12 changed files with 257 additions and 6 deletions

11
lib/config/base.dart Normal file
View File

@@ -0,0 +1,11 @@
abstract interface class Config {
Future<bool> clear();
bool containsKey(String key);
Object? get(String key);
String? getString(String key);
Future<bool> setString(String key, String value);
int? getInt(String key);
Future<bool> setInt(String key, int value);
bool? getBool(String key);
Future<bool> setBool(String key, bool value);
}