rejectRequest method

dynamic rejectRequest({
  1. required int id,
  2. String message = "Reject by the user",
})

Implementation

rejectRequest({
  required int id,
  String message = "Reject by the user",
}) {
  final response = JsonRpcErrorResponse(
    id: id,
    error: JsonRpcError.serverError(message),
  );
  _encryptAndSend(jsonEncode(response.toJson()));
}