MovieListService class
Service for managing MovieList entities in the POD following the ontology structure.
Constructors
- MovieListService.new(BuildContext _context, Widget _child, UserProfileService _userProfileService)
- Creates a new MovieListService 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
-
addMovieToList(
String movieListId, Movie movie) → Future< bool> - Adds a movie to a MovieList.
- Validates that a MovieList exists and can be shared.
-
clearCache(
) → void - Clears the cache.
-
createMovieList(
String listName, {List< Movie> ? movies, String? description}) → Future<String?> - Creates a new MovieList with the given name and movies.
-
deleteMovieList(
String movieListId) → Future< bool> - Deletes a MovieList.
-
getMovieList(
String movieListId, {bool forceRefresh = false}) → Future< Map< String, dynamic> ?> - Gets a MovieList by ID and loads full movie data for each movie reference.
-
getMovieListFilePath(
String movieListId) → String? - Gets the file path for a MovieList for sharing purposes. Returns the relative path that can be used with GrantPermissionUi.
-
getOrCreateStandardMovieList(
String listType) → Future< String?> - Gets or creates a standard MovieList (e.g. "to_watch", "watched").
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refreshMovieList(
String movieListId) → Future< Map< String, dynamic> ?> - Forces a refresh of a specific MovieList from POD.
-
removeMovieFromList(
String movieListId, Movie movie) → Future< bool> - Removes a movie from a MovieList.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited