resetUnreadMessageCount method Null safety

Future<void> resetUnreadMessageCount(
  1. {required dynamic target}
)

Implementation

Future<void> resetUnreadMessageCount({
  required dynamic target, //(JMSingle | JMGroup | JMChatRoom)
}) async {
  Map param = target.toJson();
  await _channel.invokeMethod('resetUnreadMessageCount',
      param..removeWhere((key, value) => value == null));

  return;
}