createFileMessage method

Future<Message> createFileMessage({
  1. required String filePath,
  2. required String fileName,
  3. String? operationID,
})

Create a file message filePath Path fileName File name

Implementation

Future<Message> createFileMessage({
  required String filePath,
  required String fileName,
  String? operationID,
}) {
  return _channel
      .invokeMethod(
          'createFileMessage',
          _buildParam({
            'filePath': filePath,
            'fileName': fileName,
            "operationID": Utils.checkOperationID(operationID),
          }))
      .then((value) => Utils.toObj(value, (map) => Message.fromJson(map)));
}