wrapHero method

Widget wrapHero(
  1. String tag
)

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,
  );
}