load method

  1. @override
Future<Uint8List> load()
override

Loads the model's .glb bytes.

Implementation

@override
Future<Uint8List> load() async {
  final data = await rootBundle.load(assetPath);
  return data.buffer.asUint8List(data.offsetInBytes, data.lengthInBytes);
}