createMaterialHeroController static method

HeroController createMaterialHeroController()

The HeroController used for Material page transitions.

Used by the MaterialApp.

Implementation

static HeroController createMaterialHeroController() {
  return HeroController(
    createRectTween: (Rect? begin, Rect? end) {
      return MaterialRectArcTween(begin: begin, end: end);
    },
  );
}