hero method

Widget hero({
  1. required Object tag,
  2. Key? key,
  3. CreateRectTween? createRectTween,
  4. HeroFlightShuttleBuilder? flightShuttleBuilder,
  5. HeroPlaceholderBuilder? placeholderBuilder,
  6. bool transitionOnUserGestures = false,
})

A widget that marks its child as being a candidate for hero animations.

Implementation

Widget hero({
  required Object tag,
  Key? key,
  CreateRectTween? createRectTween,
  HeroFlightShuttleBuilder? flightShuttleBuilder,
  HeroPlaceholderBuilder? placeholderBuilder,
  bool transitionOnUserGestures = false,
}) {
  return Hero(
    key: key,
    tag: tag,
    createRectTween: createRectTween,
    flightShuttleBuilder: flightShuttleBuilder,
    placeholderBuilder: placeholderBuilder,
    transitionOnUserGestures: transitionOnUserGestures,
    child: this,
  );
}