BooleanTween<T> constructor

const BooleanTween<T>({
  1. Key? key,
  2. required bool animate,
  3. required ValueWidgetBuilder<T> builder,
  4. Widget? child,
  5. Curve curve = Curves.linear,
  6. Duration duration = const Duration(milliseconds: 200),
  7. Curve? reverseCurve,
  8. Duration? reverseDuration,
  9. required Tween<T> tween,
})

It is an AnimatedBuilder. If it is TRUE, it will execute the Tween from begin to end (controller.forward()), if it is FALSE it will execute the Tween from end to begin (controller.reverse())

Implementation

const BooleanTween({
  Key? key,
  required this.animate,
  required this.builder,
  this.child,
  this.curve = Curves.linear,
  this.duration = const Duration(milliseconds: 200),
  this.reverseCurve,
  this.reverseDuration,
  required this.tween,
}) : super(key: key);