Sphere constructor

const Sphere({
  1. Key? key,
  2. required List<Widget> children,
  3. required double size,
  4. double rotationX = 30.0,
  5. double rotationY = 30.0,
  6. bool alphaEnabled = true,
})

Implementation

const Sphere({
  super.key,
  required this.children,
  required this.size,
  this.rotationX = 30.0, // degrees per second
  this.rotationY = 30.0, // optional vertical angle in degrees
  this.alphaEnabled = true,
}) : isRotate = false,
     isGesture = false;