bytes property

  1. @override
Uint8List? get bytes
override

Gets the original raw binary data (plaintext) before encoding.

Implementation

@override
Uint8List? get bytes {
  Uint8List? bin = binary;
  if (bin == null) {
    var uri = dataUri;
    if (uri != null) {
      bin = uri.contentAsBytes();
      binary = bin;
    }
    assert(uri != null, 'failed to decode data uri');
  }
  return bin;
}