readAsBytes abstract method
Reads the bytes from id.
- Throws a
PackageNotFoundExceptionifid.packageis not found. - Throws an
AssetNotFoundExceptionifid.pathis not found. - Throws an
InvalidInputExceptionifidis an invalid input. An input is invalid if it is a non-public member of a dependency package; for example by defaultlibcontains public assets buttestdoes not.
Implementation
@override
Future<List<int>> readAsBytes(AssetId id);