markAllConversationsAsRead method
Marks all conversations as read.
This method is for the local conversations only.
Throws A description of the exception. See ChatError.
Implementation
Future<void> markAllConversationsAsRead() async {
try {
Map result = await platform_interface.Client.instance.chatManager
.callNativeMethod(ChatMethodKeys.markAllChatMsgAsRead);
ChatError.hasErrorFromResult(result);
} catch (e) {
rethrow;
}
}