markAllMessagesAsRead method

Future<void> markAllMessagesAsRead()

Marks all messages as read.

Implementation

Future<void> markAllMessagesAsRead() async {
  Map result = await _emConversationChannel.invokeMethod(
      ChatMethodKeys.markAllMessagesAsRead, this._toJson());
  try {
    ChatError.hasErrorFromResult(result);
  } on ChatError catch (e) {
    throw e;
  }
}