load method Null safety

Future<ByteData> load(
  1. String key
)

Retrieve a binary resource from the asset bundle as a data stream.

Throws an exception if the asset is not found.

Implementation

Future<ByteData> load(String key);