Rotation3DAnimation constructor
const
Rotation3DAnimation({})
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);