writeAsBytes method
Writes bytes
to a binary file located at id
.
Returns a Future that completes after writing the asset out.
- Throws a
PackageNotFoundException
ifid.package
is not found. - Throws an
InvalidOutputException
if the output was not valid.
Implementation
@override
Future writeAsBytes(AssetId id, List<int> bytes) async {
assets[id] = bytes;
}