getUser method

Future<Map<String, dynamic>?> getUser()

Implementation

Future<Map<String, dynamic>?> getUser() async {
  try {
    var res = await readItem(key: StorageKeys.user);
    if(res == null){
      return null;
    }
    return jsonDecode(res);
  } catch (err) {
    return null;
  }
}