bytes property

  1. @override
Uint8List? get bytes
override

Implementation

@override
Uint8List? get bytes {
  if (file is UriData) return (file as UriData).contentAsBytes();
  if (_uri == null) return null;
  return _uri!.contentAsBytes();
}
set bytes (Uint8List? value)

Implementation

set bytes(Uint8List? value) {
  if (value != null) {
    _uri = UriData.fromBytes(value,
        mimeType: mimeType!,
        parameters: {'name': name, 'bytes': size.toString()});
  }
}