DualTransitionBuilder constructor Null safety

const DualTransitionBuilder(
  1. {Key? key,
  2. required Animation<double> animation,
  3. required AnimatedTransitionBuilder forwardBuilder,
  4. required AnimatedTransitionBuilder reverseBuilder,
  5. Widget? child}
)

Creates a DualTransitionBuilder.

The animation, forwardBuilder, and reverseBuilder arguments are required and must not be null.

Implementation

const DualTransitionBuilder({
  super.key,
  required this.animation,
  required this.forwardBuilder,
  required this.reverseBuilder,
  this.child,
}) : assert(animation != null),
     assert(forwardBuilder != null),
     assert(reverseBuilder != null);