SmoothHero constructor

const SmoothHero({
  1. required Object? tag,
  2. required bool enabled,
  3. required Widget child,
  4. dynamic onAnimationEnded(
    1. HeroFlightDirection direction
    )?,
  5. Key? key,
})

Implementation

const SmoothHero({
  required this.tag,
  required this.enabled,
  required this.child,
  this.onAnimationEnded,
  super.key,
}) : assert(!enabled || tag != null);