open method
- BuildContext context,
- InspectionLocation data,
- MyListTileData tiledata
override
when pressed on a tile in the DropDownPage this will be invoked
Implementation
@override
void open(
BuildContext context,
InspectionLocation data,
MyListTileData tiledata,
) {
currentlyChosenChildData = Future.value(data);
Navigator.of(context).push(
MaterialPageRoute(builder: (context) {
switch (tiledata.title) {
case _nextViewTitle:
return nextModel<CheckCategory, InspectionLocation, CategoryModel>(
generateNextModel(data));
case 'Fotos':
return standard_statefulImageView(this, data);
case 'Docs':
return DokusList(dokus: data.dokuspaths);
default:
return LocationDetailPage(
locationdata: data,
);
}
}),
);
}