updateRequireAckSetting method

Future<void> updateRequireAckSetting(
  1. bool requireAck
)

Implementation

Future<void> updateRequireAckSetting(bool requireAck) async {
  Map req = {'requireAck': requireAck};
  Map result = await ClientChannel.invokeMethod(
      ChatMethodKeys.updateRequireAckSetting, req);
  try {
    EMError.hasErrorFromResult(result);
    _options = _options?.copyWith(requireAck: requireAck);
  } on EMError catch (e) {
    throw e;
  }
}