writeAsBytes method Null safety
bytes to a binary file located at
Returns a Future that completes after writing the asset out.
- Throws a
id.packageis not found.
- Throws an
InvalidOutputExceptionif the output was not valid (that is,
idis not in allowedOutputs)
Builder implementations should not need to
Future since the runner will be responsible for waiting until all outputs
@override Future<void> writeAsBytes(AssetId id, FutureOr<List<int>> bytes);