requestSchedule method Null safety

Future<Response> requestSchedule()

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

Implementation

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

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