requestGrades method Null safety

Future<Response> requestGrades()

Sends an http request to get the corresponding grades from the currently signed in student.

Implementation

Future<Response> requestGrades() async {
  final endpoint = Uri.https(Environment.host, '/grades');
  final headers = <String, String>{
    HttpHeaders.authorizationHeader: 'Basic ${_storageProvider.token}'
  };

  return _httpProvider.get(endpoint, headers: headers);
}