mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
Save preferences to same directory to binary file on Windows
This commit is contained in:
11
lib/config/base.dart
Normal file
11
lib/config/base.dart
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user