requestCurrentSubjects method Null safety

Future<Response> requestCurrentSubjects()

Sends the corresponding http request to retrieve courses/subjects where the user is currently enrolled in.

Implementation

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

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