getStringData static method

Future<String> getStringData({
  1. required String key,
})

Implementation

static Future<String> getStringData({required String key}) async {
  final prefs = await SharedPreferences.getInstance();

  return prefs.getString(key) ?? "";
}