GenreProvider class
Provider for genre-based content discovery
This class manages genres for movies and TV shows, enabling content filtering by genre and providing the necessary state management for genre-based browsing.
- Mixed-in types
Constructors
Properties
- currentPage → int
-
no setter
- errorMessage → String
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- hasMorePages → bool
-
no setter
- includeAdult → bool
-
no setter
- isError → bool
-
no setter
- isLoadingGenres → bool
-
no setter
- isLoadingMore → bool
-
no setter
- isLoadingTitles → bool
-
no setter
-
movieGenres
→ List<
TmdbGenre> -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- searchResult → TmdbSearchResult?
-
no setter
- selectedGenre → TmdbGenre?
-
The selected genre object
no setter
- selectedGenreId → int?
-
no setter
- selectedType → TmdbTitleType
-
no setter
-
tvGenres
→ List<
TmdbGenre> -
no setter
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
override
-
loadGenres(
) → Future< void> - Loads genre lists for movies and TV shows
-
loadMore(
) → Future< void> - Loads more titles for the current genre (next page)
-
loadTitlesByGenre(
int genreId, TmdbTitleType type, {int page = 1}) → Future< void> - Loads titles by genre
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
setIncludeAdult(
bool include) → void - Sets whether to include adult content
-
setSelectedGenre(
int? genreId) → void - Sets the selected genre and loads titles
-
setSelectedType(
TmdbTitleType type) → void - Sets the selected title type
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited