sendFile method

Future<SendFileResponse> sendFile (
  1. MultipartFile file
)

Send a file to this channel

Implementation

Future<SendFileResponse> sendFile(MultipartFile file) async {
  final response = await _client.post(
    '$_channelURL/file',
    data: FormData.fromMap({'file': file}),
  );
  return _client.decode(response.data, SendFileResponse.fromJson);
}