get<T> static method

Future<T?> get<T>(
  1. String key
)

Implementation

static Future<T?> get<T>(String key) async {
  final prefs = await SharedPreferences.getInstance();
  return prefs.get(key) as T?;
}