expand method

Implementation

Future<CalendarEventDetails> expand(CalendarEvent event) async {
  String url;
  switch (event.type) {
    case CalendarEventType.test:
      url = student.buildUrl(
          "proevehold.aspx?type=proevehold&ProeveholdId=${event.id}");
      break;
    case CalendarEventType.regular:
      url = student
          .buildUrl("aktivitet/aktivitetforside2.aspx?absid=${event.id}");
      break;
    case CalendarEventType.private:
      url = student.buildUrl("privat_aftale.aspx?aftaleid=${event.id}");
  }
  var response = await request(url);
  return await extractCalendarEventDetails(
      BeautifulSoup(response.data), student, event);
}