DataSink class abstract interface

Sequential byte destination — any output target.

Used for PDF output, converted office documents, rendered images — any data the engine produces. Chunks are typically 4KB–256KB.

Implement with your destination: file (write), memory (BytesBuilder), upload stream, HTTP upload, pipe, etc.

Implementers

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
write(Uint8List chunk) → FutureOr<void>
Write a chunk. Called sequentially, never concurrently.

Operators

operator ==(Object other) → bool
The equality operator.
inherited