MovieService class
A service class that handles movie-related API requests.
Constructors
- MovieService.new(ApiKeyService apiKeyService)
- Creates a new MovieService instance.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void - Disposes the network client.
-
getMovieDetails(
int movieId) → Future< Movie> - Gets detailed information about a specific movie.
-
getNowPlayingMovies(
) → Future< List< Movie> > - Gets a list of movies currently playing in theaters.
-
getPopularMovies(
) → Future< List< Movie> > - Gets a list of popular movies.
-
getTopRatedMovies(
) → Future< List< Movie> > - Gets a list of top rated movies.
-
getUpcomingMovies(
) → Future< List< Movie> > - Gets a list of upcoming movies.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
searchMovies(
String query) → Future< List< Movie> > - Searches for movies matching the given query.
-
searchMoviesByActor(
String actorName) → Future< List< Movie> > - Searches for movies by actor/person name.
-
searchMoviesByGenre(
String genreName) → Future< List< Movie> > - Searches for movies by genre name.
-
searchMoviesComprehensive(
String query) → Future< Map< String, List< >Movie> > - Comprehensive search that searches by title, actor, and genre.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateApiKey(
) → Future< void> - Updates the API key and recreates the network client.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited