StreamAttachmentPickerController constructor
StreamAttachmentPickerController({
- List<
Attachment> ? initialAttachments, - int maxAttachmentSize = kDefaultMaxAttachmentSize,
- 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 []);