rate method

void rate(
  1. int score, {
  2. String? comment,
})

Rates the conversation (CSAT).

Implementation

void rate(int score, {String? comment}) {
  final conv = _state.conversation;
  if (conv == null) return;
  _send(ClientFrame.rate(conversationId: conv.id, score: score, comment: comment));
  _emit(_state.copyWith(rated: score));
}