setString static method

Future<void> setString(
  1. String key,
  2. String data
)

Implementation

static Future<void> setString(String key, String data) async {
  await prefs?.setString(key, data);
}