createImageMessageFromFullPath method

Future<Message> createImageMessageFromFullPath({
  1. required String imagePath,
  2. String? operationID,
})

Create an image message from a full path imagePath Path

Implementation

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