read static method

Future<String?> read({
  1. required String key,
})

读取指定键值

Implementation

static Future<String?> read({required String key}) async {
  try {
    return await storage.read(key: key);
  } catch (e) {
    Logger.trace('Failed to read keychain: $e');
    return null;
  }
}