2024-09-22 21:49:20 +04:00
|
|
|
import 'package:project1/main.dart';
|
|
|
|
import 'genre.dart';
|
|
|
|
|
|
|
|
class Movie {
|
|
|
|
final String title;
|
|
|
|
final Genre genre;
|
|
|
|
final double rating;
|
|
|
|
|
|
|
|
Movie({required this.title, required this.genre, required this.rating});
|
|
|
|
|
|
|
|
void printDetails() {
|
2024-10-02 13:15:15 +04:00
|
|
|
print('''Title: $title
|
|
|
|
Genre: ${genre.description}
|
|
|
|
Rating: $rating''');
|
2024-09-22 21:49:20 +04:00
|
|
|
}
|
|
|
|
}
|