30 lines
494 B
Dart
30 lines
494 B
Dart
|
|
import 'detail_hero_model.dart';
|
||
|
|
import 'detail_image_model.dart';
|
||
|
|
import 'detail_section_model.dart';
|
||
|
|
|
||
|
|
|
||
|
|
class DetailViewState {
|
||
|
|
|
||
|
|
final DetailImageModel image;
|
||
|
|
|
||
|
|
|
||
|
|
final String navTitle;
|
||
|
|
|
||
|
|
|
||
|
|
final DetailHeroModel hero;
|
||
|
|
|
||
|
|
|
||
|
|
final List<DetailSection> sections;
|
||
|
|
|
||
|
|
|
||
|
|
final bool showLoadingBelowHero;
|
||
|
|
|
||
|
|
const DetailViewState({
|
||
|
|
required this.image,
|
||
|
|
required this.navTitle,
|
||
|
|
required this.hero,
|
||
|
|
this.sections = const <DetailSection>[],
|
||
|
|
this.showLoadingBelowHero = false,
|
||
|
|
});
|
||
|
|
}
|