getVideos method

Future<List<Video>> getVideos(
  1. int id, {
  2. String? language,
})

Implementation

Future<List<Video>> getVideos(
  int id, {
  String? language,
}) {
  var queryParams = {
    "api_key": _apiKey,
    "language": language,
  };

  return _get<List<Video>>(
    "3/movie/$id/videos",
    queryParams,
    const QualitySettings(),
    (map, assetResolver) =>
        Video.listFromJson(map["results"] as List<dynamic>),
  );
}