selectAttachmentOnTap method

Future<void> selectAttachmentOnTap(
  1. dynamic ref,
  2. dynamic context,
  3. dynamic attachmentType
)

Implementation

Future<void> selectAttachmentOnTap(
  WidgetRef ref,
  BuildContext context,
  AttachmentType attachmentType,
) async {
  await selectAttachment(L10n.of(context), ref, attachmentType);
  if (isBottomSheetOpen && context.mounted) {
    Navigator.pop(context);
  }
}