CrossFadeAnimation constructor

CrossFadeAnimation({
  1. Key? key,
  2. required AnimationController controller,
  3. required Widget outgoingChild,
  4. required Widget ingoingChild,
})

Implementation

CrossFadeAnimation({
  Key? key,
  required this.controller,
  required this.outgoingChild,
  required this.ingoingChild,
})   : outgoingOpacity = Tween<double>(
        begin: 1.0,
        end: 0.0,
      ).animate(controller),
      ingoingOpacity = Tween<double>(
        begin: 0.0,
        end: 1.0,
      ).animate(controller),
      super(key: key);