Sphere.rotate constructor
const
Sphere.rotate({})
Implementation
const Sphere.rotate({
super.key,
required this.children,
required this.size,
bool isRotationX = true,
bool isRotationY = true, // degrees per second
double rotationYSpeed = 30.0, // optional vertical angle in degrees
this.alphaEnabled = true,
this.isRotate = true,
}) : rotationX = isRotationX ? 1.0 : 0.0,
rotationY = isRotationY ? 1.0 : 0.0,
isGesture = false;