Flutter3DViewer constructor

const Flutter3DViewer({
  1. Key? key,
  2. required String src,
  3. Flutter3DController? controller,
  4. Color? progressBarColor,
  5. bool activeGestureInterceptor = true,
  6. bool enableTouch = true,
  7. dynamic onProgress(
    1. double progressValue
    )?,
  8. dynamic onLoad(
    1. String modelAddress
    )?,
  9. dynamic onError(
    1. String modelAddress
    )?,
})

Implementation

const Flutter3DViewer({
  super.key,
  required this.src,
  this.controller,
  this.progressBarColor,
  this.activeGestureInterceptor = true,
  this.enableTouch = true,
  this.onProgress,
  this.onLoad,
  this.onError,
})  : isObj = false,
      scale = null,
      cameraX = null,
      cameraY = null,
      cameraZ = null;