rate method Null safety
给通话评分。
Parameter callId
通过 RtcEngine.getCallId 函数获取的通话 ID。
Parameter rating
给通话的评分,最低 1 分,最高 5 分,如超过这个范围,SDK 会返回 ErrorCode.InvalidArgument 错误。
Parameter description
(非必选项)给通话的描述,可选,长度应小于 800 字节。
Implementation
@override
Future<void> rate(String callId, int rating, {String? description}) {
return _invokeMethod('rate', {
'callId': callId,
'rating': rating,
'description': description,
});
}