get<T> static method

Future get<T>(
  1. String key
)

Implementation

static Future<dynamic?> get<T>(String key) async {
  if (_prefs == null) await init();
  if (_prefs?.containsKey(key) ?? false) {
    return _prefs?.get(key);
  } else {
    return null;
  }
}