getAccessToken method Null safety

Future<String> getAccessToken()

Return the user access_token

Implementation

Future<String> getAccessToken() async {
  var token = await storage.getToken();
  if (token == null) throw CacheException();
  return token;
}