loadBinary static method
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);
}