writeAsBytes abstract method

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

Writes bytes to id.

The id must be one of allowedOutputs or an UnexpectedOutputException is thrown.

The id must not have been written before or an InvalidOutputException is thrown.

Implementation

@override
Future<void> writeAsBytes(AssetId id, FutureOr<List<int>> bytes);