build_graph function

Future<GraphServiceClient> build_graph(
  1. String username
)

Implementation

Future<GraphServiceClient> build_graph(String username) async {
  var _token = await get_token(username);
  if (_token == null) {
    throw Exception('no token');
  }
  var _client = build_client(_token);
  return GraphServiceClient(_token, _client);
}