getString static method

Future<String?> getString(
  1. String key
)

Retrieves a stored string value.

Implementation

static Future<String?> getString(String key) async {
  return _sharedPreferences.getString(key);
}