fromAsset static method

Future<ImportedScene> fromAsset(
  1. String asset
)

Loads and deserializes a .model asset from the asset bundle.

Implementation

static Future<ImportedScene> fromAsset(String asset) {
  return rootBundle.loadStructuredBinaryData<ImportedScene>(asset, (data) {
    return fromFlatbuffer(data);
  });
}