ModelViewer constructor
const
ModelViewer({
- required String src,
- Color backgroundColor = Colors.transparent,
- String? alt,
- String? poster,
- Loading? loading,
- Reveal? reveal,
- bool? withCredentials,
- bool? ar,
- List<
String> ? arModes, - ArScale? arScale,
- ArPlacement? arPlacement,
- String? iosSrc,
- bool? xrEnvironment,
- bool? cameraControls = true,
- bool? disablePan,
- bool? disableTap,
- TouchAction? touchAction,
- bool? disableZoom,
- int? orbitSensitivity,
- bool? autoRotate,
- int? autoRotateDelay,
- String? rotationPerSecond,
- InteractionPrompt? interactionPrompt,
- InteractionPromptStyle? interactionPromptStyle,
- num? interactionPromptThreshold,
- String? cameraOrbit,
- String? cameraTarget,
- String? fieldOfView,
- String? maxCameraOrbit,
- String? minCameraOrbit,
- String? maxFieldOfView,
- String? minFieldOfView,
- num? interpolationDecay,
- String? skyboxImage,
- String? environmentImage,
- num? exposure,
- num? shadowIntensity,
- num? shadowSoftness,
- String? animationName,
- num? animationCrossfadeDuration,
- bool? autoPlay,
- String? variantName,
- String? orientation,
- String? scale,
- num? minHotspotOpacity,
- num? maxHotspotOpacity,
- String? innerModelViewerHtml,
- String? id,
- bool? debugLogging = true,
- NodeValidatorBuilder? overwriteNodeValidatorBuilder,
- Set<
JavascriptChannel> ? javascriptChannels, - ValueChanged<
WebViewController> ? onWebViewCreated, - 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,
});