Sphere.rotate constructor

const Sphere.rotate({
  1. Key? key,
  2. required List<Widget> children,
  3. required double size,
  4. bool isRotationX = true,
  5. bool isRotationY = true,
  6. double rotationYSpeed = 30.0,
  7. bool alphaEnabled = true,
  8. bool isRotate = true,
})

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;