sendFile method

Future<SendFileResponse> sendFile(
  1. AttachmentFile file,
  2. String channelId,
  3. String channelType, {
  4. ProgressCallback? onSendProgress,
  5. CancelToken? cancelToken,
})

Send a file to the channelId of type channelType

Implementation

Future<SendFileResponse> sendFile(
  AttachmentFile file,
  String channelId,
  String channelType, {
  ProgressCallback? onSendProgress,
  CancelToken? cancelToken,
}) =>
    _chatApi.fileUploader.sendFile(
      file,
      channelId,
      channelType,
      onSendProgress: onSendProgress,
      cancelToken: cancelToken,
    );