xHero method

Widget xHero(
  1. {Widget placeholderBuilder(
    1. BuildContext,
    2. Size,
    3. Widget
    ),
  2. Tween<Rect> createRectTween(
    1. Rect,
    2. Rect
    ),
  3. Object tag,
  4. bool transitionOnUserGestures = false,
  5. Key key,
  6. Widget flightShuttleBuilder(
    1. BuildContext,
    2. Animation<double>,
    3. HeroFlightDirection,
    4. BuildContext,
    5. BuildContext
    )}
)

Implementation

Widget xHero(
    {Widget Function(BuildContext, Size, Widget) placeholderBuilder,
    Tween<Rect> Function(Rect, Rect) createRectTween,
    Object tag,
    bool transitionOnUserGestures = false,
    Key key,
    Widget Function(BuildContext, Animation<double>, HeroFlightDirection,
            BuildContext, BuildContext)
        flightShuttleBuilder}) {
  return Hero(
    tag: tag,
    createRectTween: createRectTween,
    flightShuttleBuilder: flightShuttleBuilder,
    key: key,
    transitionOnUserGestures: transitionOnUserGestures,
    placeholderBuilder: placeholderBuilder,
    child: this,
  );
}