string method
Implementation
Future<String?> string(String key, [String? data]) async {
final shared = await this;
if (data.isNotNullOrBlank) {
await shared.setString(key, data!);
return data;
} else {
return shared.get(key)?.toString();
}
}