toBytes abstract method
The binary representation of content already written to this encoder.
Returns a valid binary representation of content as a sequence of bytes for a binary format encoder, and an UTF8 encoded binary representation of textual content for a text format encoder.
Throws FormatException
if encoding fails.
Implementation
Uint8List toBytes();