sendFile method

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

Send a file to this channel.

Implementation

Future<SendFileResponse> sendFile(
  AttachmentFile file, {
  ProgressCallback? onSendProgress,
  CancelToken? cancelToken,
}) {
  _checkInitialized();
  return _client.sendFile(
    file,
    id!,
    type,
    onSendProgress: onSendProgress,
    cancelToken: cancelToken,
  );
}