loadAsset abstract method

Future<Uint8List> loadAsset(
  1. String path
)

Loads an asset as bytes from the given path

The path should be relative to the assets directory Example: 'models/demo.bin' or 'assets/models/demo.bin'

Throws:

  • AssetNotFoundException if asset doesn't exist
  • Exception for other loading errors

Implementation

Future<Uint8List> loadAsset(String path);