maxAttachmentSize property

int get maxAttachmentSize

Maximum allowed file size of attachments, in bytes. Attachments above this size will be discarded

Remarks: Regardless of this setting, attachments are also limited to 20mb (compressed) on Relay.

Implementation

int get maxAttachmentSize => _maxAttachmentSize;
set maxAttachmentSize (int maxAttachmentSize)

Implementation

set maxAttachmentSize(int maxAttachmentSize) {
  assert(maxAttachmentSize > 0);
  _maxAttachmentSize = maxAttachmentSize;
}