deleteMessages method Null safety

Future<V2TimCallback> deleteMessages(
  1. {required List<String> msgIDs,
  2. List? webMessageInstanceList}
)

Delete local and roaming messages

Parameter

msgIDs webMessageInstanceList This parameter is unique to the web. The element is the message instance on the web side. For details, please seeweb documentation

Note:
This interface will delete the local history and also delete the roaming messages, that is, the messages saved on the server. After uninstalling and reinstalling, they cannot be retrieved. It should be noted that:
 Only a maximum of 30 messages can be deleted at a time
 The messages to be deleted must belong to the same session
 This interface can only be called at most once per second
 If the account has pulled these messages on other devices message, after calling this interface to delete, these messages will still be saved on those devices, that is, deleting messages does not support multi-terminal synchronization. 

Implementation

Future<V2TimCallback> deleteMessages(
    {required List<String> msgIDs,
    List<dynamic>? webMessageInstanceList}) async {
  return ImFlutterPlatform.instance.deleteMessages(
      msgIDs: msgIDs, webMessageInstanceList: webMessageInstanceList);
}