getCalendarAllDvdReleases method

Future<List<MyCalendarMovie>> getCalendarAllDvdReleases({
  1. String? startDate,
  2. int? numberOfDays,
  3. bool extendedFull = false,
  4. Filters? filters,
})

Returns all movies with a DVD release date during the time period specified.

startDate - Start the calendar on this date. numberOfDays - Number of days to display

✨ Extended Info 🎚 Filters

Implementation

Future<List<MyCalendarMovie>> getCalendarAllDvdReleases(
    {String? startDate,
    int? numberOfDays,
    bool extendedFull = false,
    Filters? filters}) async {
  assert(
      (startDate == null && numberOfDays == null) ||
          (startDate != null && numberOfDays != null),
      "Both startdate and numberOfDays need to be given or both be null");

  var request = "";
  if (startDate != null) {
    request = "/$startDate/$numberOfDays";
  }
  return await _manager._getList<MyCalendarMovie>("calendars/all/dvd$request",
      extendedFull: extendedFull, filters: filters);
}