reply method

Future<void> reply(
  1. String data, {
  2. int maxHoldingSeconds = 0,
})

Implementation

Future<void> reply(String data, {int maxHoldingSeconds = 0}) async {
  try {
    await Client._methodChannel.invokeMethod('replyText', {
      '_id': this._id,
      'messageId': this.messageId,
      'dest': this.src,
      'data': data,
      'encrypted': this.encrypted,
      'maxHoldingSeconds': maxHoldingSeconds,
    });
  } catch (e) {
    rethrow;
  }
}