Rotation3DAnimation constructor

const Rotation3DAnimation({
  1. Key? key,
  2. required Widget child,
  3. double angle = math.pi,
  4. Duration duration = const Duration(milliseconds: 500),
  5. Direction direction = Direction.left,
  6. bool isContinuous = false,
  7. bool isHalfRotation = false,
})

Whether to perform a half rotation. Constructor for the Rotation3DAnimation widget.

Implementation

/// Constructor for the Rotation3DAnimation widget.
const Rotation3DAnimation({
  Key? key,
  required this.child,
  this.angle = math.pi,
  this.duration = const Duration(milliseconds: 500),
  this.direction = Direction.left,
  this.isContinuous = false,
  this.isHalfRotation = false,
})  : assert(!(isContinuous && isHalfRotation),
          "isContinuous and isHalfRotation cannot be both true"),
      super(key: key);