SceneModelSource class abstract
Describes where a SceneModel loads its model bytes from.
Mirrors the ImageProvider pattern: the widget diffs sources by
cacheKey, so rebuilding with an equal-keyed source does not reload.
Built-in sources are AssetModelSource and MemoryModelSource; apps
with custom transports (network, local cache) subclass this or download
bytes themselves and wrap them in a MemoryModelSource.
- Implementers
Constructors
- SceneModelSource()
-
const
Properties
- cacheKey → String
-
Identifies the model. A rebuild whose source has the same key keeps the
loaded model; a different key discards it and loads the new source.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createNode(
) → Future< Node> - Loads and imports the model, producing the shared template node tree.
-
load(
) → Future< Uint8List> -
Loads the model's
.glbbytes. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited