encodingBytes property
The raw bytes of the rendered encoding, or null if none was carried.
This is the exact ground truth for the encoding channel; encoding is a lenient UTF-8 string view of these same bytes. A non-null empty Uint8List denotes a present-but-empty encoding (distinct from null, which denotes an absent one), mirroring the attachment / attachmentBytes pair.
On a sample the encoding is never absent — canon always renders one — so this is non-null in practice; the nullability mirrors encoding's and the other receive surfaces', where absence is genuinely reachable.
Implementation
final Uint8List? encodingBytes;