loadBinary static method

Future<ByteData> loadBinary(
  1. String path
)

Loads a binary file from local assets.

The path argument is the path to the binary file to be loaded.

Returns a Future that completes with a ByteData object.

Implementation

static Future<ByteData> loadBinary(String path) async {
  return await rootBundle.load(path);
}