retractMessage method

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

Implementation

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

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

  print("retractMessage: ${param.toString()}");

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

  return;
}