CellAnimatedSwitcher constructor

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

Implementation

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