hero method

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

Implementation

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