rate method Null safety

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

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

Parameter callId ID of the call retrieved from the RtcEngine.getCallId method.

Parameter rating Rating of the call. The value is between 1 (lowest score) and 5 (highest score). If you set a value out of this range, the ErrorCode.InvalidArgument error occurs.

Parameter description (Optional) The description of the rating. The string length must be less than 800 bytes.

Implementation

@override
Future<void> rate(String callId, int rating, {String? description}) {
  return _invokeMethod('rate', {
    'callId': callId,
    'rating': rating,
    'description': description,
  });
}