StreamAttachmentPickerController constructor

StreamAttachmentPickerController({
  1. List<Attachment>? initialAttachments,
  2. int maxAttachmentSize = kDefaultMaxAttachmentSize,
  3. int maxAttachmentCount = kDefaultMaxAttachmentCount,
})

Creates a new instance of StreamAttachmentPickerController.

Implementation

StreamAttachmentPickerController({
  this.initialAttachments,
  this.maxAttachmentSize = kDefaultMaxAttachmentSize,
  this.maxAttachmentCount = kDefaultMaxAttachmentCount,
})  : assert(
        (initialAttachments?.length ?? 0) <= maxAttachmentCount,
        '''The initial attachments count must be less than or equal to maxAttachmentCount''',
      ),
      super(initialAttachments ?? const []);