31 lines
613 B
Dart
31 lines
613 B
Dart
|
|
import 'package:flutter/widgets.dart';
|
||
|
|
|
||
|
|
|
||
|
|
class DetailHeroModel {
|
||
|
|
final String title;
|
||
|
|
final String? logoUrl;
|
||
|
|
final String? posterUrl;
|
||
|
|
final double? rating;
|
||
|
|
final List<String> metaParts;
|
||
|
|
final List<String> genres;
|
||
|
|
final String? tagline;
|
||
|
|
final String? overview;
|
||
|
|
final Widget? actions;
|
||
|
|
|
||
|
|
|
||
|
|
final Map<String, String>? imageHeaders;
|
||
|
|
|
||
|
|
const DetailHeroModel({
|
||
|
|
required this.title,
|
||
|
|
this.logoUrl,
|
||
|
|
this.posterUrl,
|
||
|
|
this.rating,
|
||
|
|
this.metaParts = const <String>[],
|
||
|
|
this.genres = const <String>[],
|
||
|
|
this.tagline,
|
||
|
|
this.overview,
|
||
|
|
this.actions,
|
||
|
|
this.imageHeaders,
|
||
|
|
});
|
||
|
|
}
|