createMaterialHeroController static method

HeroController createMaterialHeroController()
override

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