hero method
Widget
hero({
- required Object tag,
- Key? key,
- CreateRectTween? createRectTween,
- HeroFlightShuttleBuilder? flightShuttleBuilder,
- HeroPlaceholderBuilder? placeholderBuilder,
- 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,
);
}