asBytes property
Uint8List?
get
asBytes
Implementation
Uint8List? get asBytes {
if (value == null) return null;
if (value is Uint8List) return value! as Uint8List;
throw StateError("value is not a byte array. tag=${tagString(tag)}");
}