deleteMessageById method

Future<void> deleteMessageById ({@required dynamic type, @required String messageId })

Implementation

Future<void> deleteMessageById({
  @required dynamic type, /// (JMSingle | JMGroup | JMChatRoom)
  @required String messageId,
}) async {
  Map param = type.toJson();

  param..addAll({
      'messageId': messageId,
    });

  await _channel.invokeMethod('deleteMessageById',
    param..removeWhere((key,value) => value == null));

  return;
}