HeroModifier constructor

const HeroModifier({
  1. Key? key,
  2. Key? modifierKey,
  3. Widget? child,
  4. required Object tag,
  5. CreateRectTween? createRectTween,
  6. HeroFlightShuttleBuilder? flightShuttleBuilder,
  7. HeroPlaceholderBuilder? placeholderBuilder,
  8. 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,
});