sendFile abstract method

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

Uploads a file to the given channel. Returns SendFileResponse once sent successfully.

Optionally, access upload progress using onSendProgress and cancel the request using cancelToken

Implementation

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