IndefiniteRotation3DEffect constructor

const IndefiniteRotation3DEffect({
  1. Key? key,
  2. required Widget child,
  3. bool autoRotate = true,
  4. int? rotationCount,
  5. bool rotateX = true,
  6. bool rotateY = false,
  7. Duration rotationDuration = const Duration(seconds: 5),
  8. bool allowUserRotation = true,
  9. bool stopRotationOnUserInteraction = false,
  10. double gestureSensitivity = 0.01,
})

Implementation

const IndefiniteRotation3DEffect({
  super.key,
  required this.child,
  this.autoRotate = true,
  this.rotationCount,
  this.rotateX = true,
  this.rotateY = false,
  this.rotationDuration = const Duration(seconds: 5),
  this.allowUserRotation = true,
  this.stopRotationOnUserInteraction = false,
  this.gestureSensitivity = 0.01,
})  : assert(rotateX || rotateY, 'At least one axis must be true.'),
      assert(rotationCount == null || rotationCount > 0,
          'rotationCount must be greater than zero.');