AnimatedSwitcher constructor

const AnimatedSwitcher({
  1. Key? key,
  2. Widget? child,
  3. required Duration duration,
  4. Duration? reverseDuration,
  5. Curve switchInCurve = Curves.linear,
  6. Curve switchOutCurve = Curves.linear,
  7. AnimatedSwitcherTransitionBuilder transitionBuilder = AnimatedSwitcher.defaultTransitionBuilder,
  8. AnimatedSwitcherLayoutBuilder layoutBuilder = AnimatedSwitcher.defaultLayoutBuilder,
})

Creates an AnimatedSwitcher.

Implementation

const AnimatedSwitcher({
  super.key,
  this.child,
  required this.duration,
  this.reverseDuration,
  this.switchInCurve = Curves.linear,
  this.switchOutCurve = Curves.linear,
  this.transitionBuilder = AnimatedSwitcher.defaultTransitionBuilder,
  this.layoutBuilder = AnimatedSwitcher.defaultLayoutBuilder,
});