getMovies method
Get the movies that belong to a keyword.
We highly recommend using movie.discover
instead of this method as it is much more flexible.
Parameters
keywordId
: id of a keyword
language
:Pass a ISO 639-1 value to display translated data for the fields that support it.
minLength: 2, pattern: (a-z
{2})-(A-Z
{2}), default: en-US
includeAdult
: Choose whether to inlcude adult (pornography) content in the results.
default: false
Implementation
Map result = await tmdb.v3.keywords.getMovies(3417);
Implementation
Future<Map> getMovies(
int keywordId, {
String? language,
bool includeAdult = false,
}) {
return _v._query(
'$_endPoint/$keywordId',
optionalQueries: ['include_adult=$includeAdult', 'language=${language ?? _v._tmdb.defaultLanguage}'],
);
}