getString method
Implementation
Future<String?> getString({
required String key,
String? defaultValue,
}) async {
try {
return Database.getSharedPreferences().getString(key) ?? defaultValue;
} catch (_) {}
return defaultValue;
}
Future<String?> getString({
required String key,
String? defaultValue,
}) async {
try {
return Database.getSharedPreferences().getString(key) ?? defaultValue;
} catch (_) {}
return defaultValue;
}