attachmentWeightInBytes property
int
attachmentWeightInBytes
Implementation
int get attachmentWeightInBytes {
if (!flags.attachements) return 0;
//if (attachmentLink.isEmpty) return -1;
var bdata = new ByteData.view(attachmentLink.buffer);
var bdl = bdata.lengthInBytes;
final w = bdata.getUint64(0);
if (w < 10240000) return w;
return 0;
}