readAsBytes abstract method
Returns a Future that completes with the bytes of a binary asset.
- Throws a
PackageNotFoundExceptionifid.packageis not found. - Throws a
AssetNotFoundExceptionifid.pathis not found. - Throws an
InvalidInputExceptionifidis an invalid input.
Implementation
Future<List<int>> readAsBytes(AssetId id);