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