sendFile abstract method
Future<SendFileResponse>
sendFile(
- AttachmentFile file,
- String channelId,
- String channelType, {
- ProgressCallback? onSendProgress,
- CancelToken? cancelToken,
- Map<
String, Object?> ? extraData,
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,
Map<String, Object?>? extraData,
});