StreamMessageInputController.fromAttachments constructor
StreamMessageInputController.fromAttachments(
- List<
Attachment> attachments, { - Map<
RegExp, TextStyleBuilder> ? textPatternStyle,
Creates a controller for an editable text field from initial
attachments
.
Implementation
factory StreamMessageInputController.fromAttachments(
List<Attachment> attachments, {
Map<RegExp, TextStyleBuilder>? textPatternStyle,
}) =>
StreamMessageInputController._(
initialMessage: Message(attachments: attachments),
textPatternStyle: textPatternStyle,
);