saveStringData static method

void saveStringData({
  1. required String key,
  2. required String value,
})

Implementation

static void saveStringData(
    {required String key, required String value}) async {
  final prefs = await SharedPreferences.getInstance();

  prefs.setString(key, value);
}