TmdbImageUtil class

A utility class for handling TMDB image URLs.

Constructors

TmdbImageUtil.new()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

extractPath(String url) String
Extracts the path from a full TMDB image URL.
getBackdropUrl(String? path, {String size = 'w780'}) String
Creates a backdrop URL with the specified size.
getPosterUrl(String? path, {String size = 'w185'}) String
Creates a poster URL with the specified size.
getProfileUrl(String? path, {String size = 'w185'}) String
Creates a profile picture URL with the specified size.

Constants

backdropSizes → const Map<String, String>
Available image sizes for backdrops.
posterSizes → const Map<String, String>
Available image sizes for posters.
profileSizes → const Map<String, String>
Available image sizes for profile pictures.