Movie class

Constructors

Movie({String id = "", int price = 0, required String photoUrl, required String name, required String description, double rating = 0.0, int duration = 0})

Properties

description String
final
duration int
final
hashCode int
The hash code for this object.
no setterinherited
id String
final
name String
final
photoUrl String
final
price int
final
rating double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? id, String? name, String? description, String? photoUrl, double? rating, int? duration, int? price}) Movie
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(Map<String, dynamic> json) Movie