loading property

Loading? loading
final

An enumerable attribute describing under what conditions the model should be preloaded. The supported values are "auto", "lazy" and "eager". Auto is equivalent to lazy, which loads the model when it is near the viewport for reveal="auto", and when interacted with for reveal="interaction". Eager loads the model immediately.

You may use the Loading enum to set this attribute.

<model-viewer> official document: https://modelviewer.dev/docs/#entrydocs-loading-attributes-loading

Implementation

final Loading? loading;