sendFile method

Future<void> sendFile(
  1. String path
)

Providers only - send file

path the file path, that will represent the file attachment on live chat

Implementation

Future<void> sendFile(String path) async {
  final arguments = {
    'file': path,
  };
  try {
    await _channel.invokeMethod('sendFile', arguments);
  } catch (e) {
    print(e);
  }
}