SelectAttachmentsView
public final static Unit SelectAttachmentsView(List<Attachment> attachments, Function1<Attachment, Unit> onAttachmentTapped, Function1<Collection<Attachment>, Unit> onShare, Function0<Unit> onCancel, Modifier modifier)
Present a view to select and display or share from a list of Attachment. Current implementation utilizes ModalBottomSheet to present the view, with enabled sheet gestures and disabled partial expansion.
Parameters
attachments
Available attachments.
onAttachmentTapped
Direct action on an attachment, typically preview a single attachment.
onShare
Share was selected for one or more attachments. Selected attachments are passed as the sole parameter.
onCancel
The selection user intent was cancelled via back button or a tap outside the view.
modifier
Modifier for the ModalBottomSheet.