wrapHero method
Implementation
Widget wrapHero(String tag) {
return Hero(
tag: tag,
flightShuttleBuilder: (BuildContext flightContext,
Animation<double> animation,
HeroFlightDirection flightDirection,
BuildContext fromHeroContext,
BuildContext toHeroContext) {
return Material(
child: toHeroContext.widget,
);
},
child: this,
);
}