Movie class

A class representing a movie with its details.

Inheritance
Annotations

Constructors

Movie.new({required int id, required String title, required String overview, required String posterUrl, required String backdropUrl, required double voteAverage, required DateTime releaseDate, required List<int> genreIds})
Creates a new Movie instance.
Movie.fromJson(Map<String, dynamic> json)
Creates a Movie instance from a JSON map.
factory

Properties

backdropUrl String
URL for the movie's backdrop image.
final
box BoxBase?
Get the box in which this object is stored. Returns null if object has not been added to a box yet.
no setterinherited
genreIds List<int>
List of genre IDs associated with the movie.
final
hashCode int
The hash code for this object.
no setterinherited
id int
Unique identifier for the movie.
final
isInBox bool
Returns whether this object is currently stored in a box.
no setterinherited
key → dynamic
Get the key associated with this object. Returns null if object has not been added to a box yet.
no setterinherited
overview String
Overview or description of the movie.
final
posterUrl String
URL for the movie's poster image.
final
releaseDate DateTime
Release date of the movie.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String
Title of the movie.
final
voteAverage double
Average rating of the movie.
final

Methods

delete() Future<void>
Deletes this object from the box it is stored in.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save() Future<void>
Persists this object.
inherited
toJson() Map<String, dynamic>
Converts the Movie instance to a JSON map.
toString() String
A string representation of this object.
inherited

Operators

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