TurnTransition constructor

const TurnTransition({
  1. Key? key,
  2. required bool turn,
  3. required Widget child,
  4. double begin = 90,
  5. double end = -90,
  6. Curve curve = Curves.ease,
  7. Duration duration = const Duration(milliseconds: 200),
})

It is a RotationTransition but this will be animate when receiving a Boolean value.

Implementation

const TurnTransition({
  Key? key,
  required this.turn,
  required this.child,
  this.begin = 90,
  this.end = -90,
  this.curve = Curves.ease,
  this.duration = const Duration(milliseconds: 200),
}) : super(key: key);