getString method
Future<String?>
getString(
- String key, {
- SharedPreferencesPlusOptions options = const SharedPreferencesPlusOptions(),
override
Reads a string value for key.
Implementation
@override
Future<String?> getString(
String key, {
SharedPreferencesPlusOptions options = const SharedPreferencesPlusOptions(),
}) async {
final value = (await getAll(options: options))[key];
return value is String ? value : null;
}