Hero constructor
- Key? key,
- required Object tag,
- CreateRectTween? createRectTween,
- HeroFlightShuttleBuilder? flightShuttleBuilder,
- HeroPlaceholderBuilder? placeholderBuilder,
- bool transitionOnUserGestures = false,
- Curve curve = Curves.fastOutSlowIn,
- Curve? reverseCurve,
- required Widget child,
Create a hero.
The child parameter and all of the its descendants must not be Heroes.
Implementation
const Hero({
super.key,
required this.tag,
this.createRectTween,
this.flightShuttleBuilder,
this.placeholderBuilder,
this.transitionOnUserGestures = false,
this.curve = Curves.fastOutSlowIn,
this.reverseCurve,
required this.child,
});