writeAsBytes method

  1. @override
Future<void> writeAsBytes(
  1. AssetId id,
  2. List<int> bytes
)
override

Writes bytes to a binary file located at id.

Returns a Future that completes after writing the asset out.

  • Throws a PackageNotFoundException if id.package is not found.
  • Throws an InvalidOutputException if the output was not valid.

Implementation

@override
Future<void> writeAsBytes(AssetId id, List<int> bytes) {
  _assetsWritten.add(id);
  return _delegate.writeAsBytes(id, bytes);
}