rate abstract method

Future<void> rate({
  1. required String callId,
  2. required int rating,
  3. required String description,
})

Allows a user to rate a call after the call ends.

Ensure that you call this method after leaving a channel.

  • callId The current call ID. You can get the call ID by calling getCallId.
  • rating The value is between 1 (the lowest score) and 5 (the highest score).
  • description A description of the call. The string length should be less than 800 bytes.

Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly.

Implementation

Future<void> rate(
    {required String callId,
    required int rating,
    required String description});