get static method

Future get(
  1. String key
)

Retrieve and decode data for key, or null if missing/expired.

Implementation

static Future<dynamic> get(String key) async {
  final raw = await storage.get(key);
  if (raw == null) return null;
  return jsonDecode(raw);
}