ImportedScene class
A deserialized Flutter Scene .model payload.
flutter_scene consumes these via Node.fromAsset and
Node.fromFlatbuffer, but applications can also load one directly to
inspect or transform the underlying flatbuffer. The
flutter_scene_importer package owns the schema; the
flatbuffer.dart library re-exports the generated
flatbuffer types and provides a few helpful extensions on them.
Properties
- flatbuffer → dynamic
-
The deserialized flatbuffer root.
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
-
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
Static Methods
-
fromAsset(
String asset) → Future< ImportedScene> -
Loads and deserializes a
.modelasset from the asset bundle. -
fromFlatbuffer(
ByteData data) → ImportedScene -
Deserializes a
.modelpayload from already-loaded bytes.