ModelViewer constructor

const ModelViewer({
  1. required String src,
  2. Color backgroundColor = Colors.transparent,
  3. String? alt,
  4. String? poster,
  5. Loading? loading,
  6. Reveal? reveal,
  7. bool? withCredentials,
  8. bool? ar,
  9. List<String>? arModes,
  10. ArScale? arScale,
  11. ArPlacement? arPlacement,
  12. String? iosSrc,
  13. bool? xrEnvironment,
  14. bool? cameraControls = true,
  15. bool? disablePan,
  16. bool? disableTap,
  17. TouchAction? touchAction,
  18. bool? disableZoom,
  19. int? orbitSensitivity,
  20. bool? autoRotate,
  21. int? autoRotateDelay,
  22. String? rotationPerSecond,
  23. InteractionPrompt? interactionPrompt,
  24. InteractionPromptStyle? interactionPromptStyle,
  25. num? interactionPromptThreshold,
  26. String? cameraOrbit,
  27. String? cameraTarget,
  28. String? fieldOfView,
  29. String? maxCameraOrbit,
  30. String? minCameraOrbit,
  31. String? maxFieldOfView,
  32. String? minFieldOfView,
  33. num? interpolationDecay,
  34. String? skyboxImage,
  35. String? environmentImage,
  36. num? exposure,
  37. num? shadowIntensity,
  38. num? shadowSoftness,
  39. String? animationName,
  40. num? animationCrossfadeDuration,
  41. bool? autoPlay,
  42. String? variantName,
  43. String? orientation,
  44. String? scale,
  45. num? minHotspotOpacity,
  46. num? maxHotspotOpacity,
  47. String? innerModelViewerHtml,
  48. String? relatedCss,
  49. String? relatedJs,
  50. String? id,
  51. bool? debugLogging = true,
  52. NodeValidatorBuilder? overwriteNodeValidatorBuilder,
  53. Set<JavascriptChannel>? javascriptChannels,
  54. ValueChanged<WebViewController>? onWebViewCreated,
  55. Key? key,
})

Implementation

const ModelViewer({
  required this.src,
  this.backgroundColor = Colors.transparent,
  this.alt,
  this.poster,
  this.loading,
  this.reveal,
  this.withCredentials,
  this.ar,
  this.arModes,
  this.arScale,
  this.arPlacement,
  this.iosSrc,
  this.xrEnvironment,
  this.cameraControls = true,
  this.disablePan,
  this.disableTap,
  this.touchAction,
  this.disableZoom,
  this.orbitSensitivity,
  this.autoRotate,
  this.autoRotateDelay,
  this.rotationPerSecond,
  this.interactionPrompt,
  this.interactionPromptStyle,
  this.interactionPromptThreshold,
  this.cameraOrbit,
  this.cameraTarget,
  this.fieldOfView,
  this.maxCameraOrbit,
  this.minCameraOrbit,
  this.maxFieldOfView,
  this.minFieldOfView,
  this.interpolationDecay,
  this.skyboxImage,
  this.environmentImage,
  this.exposure,
  this.shadowIntensity,
  this.shadowSoftness,
  this.animationName,
  this.animationCrossfadeDuration,
  this.autoPlay,
  this.variantName,
  this.orientation,
  this.scale,
  // this.arStatus,
  // this.arTracking,
  this.minHotspotOpacity,
  this.maxHotspotOpacity,
  this.innerModelViewerHtml,
  this.relatedCss,
  this.relatedJs,
  this.id,
  this.debugLogging = true,
  this.overwriteNodeValidatorBuilder,
  this.javascriptChannels,
  this.onWebViewCreated,
  super.key,
});