deleteMessageFromLocalStorage method Null safety

Future<V2TimCallback> deleteMessageFromLocalStorage(
  1. {required String msgID}
)

Delete local messages

Parameter

msgID Message ID

Note:

The message can only be deleted locally. After the message is deleted, the SDK will mark the message as deleted locally, and getHistoryMessage can no longer be retrieved. However, if the program is uninstalled and reinstalled, the deletion mark of the message will be lost locally. getHistoryMessage The message can be retrieved again. 

Note: web does not support this interface

Implementation

Future<V2TimCallback> deleteMessageFromLocalStorage({
  required String msgID,
}) async {
  return ImFlutterPlatform.instance
      .deleteMessageFromLocalStorage(msgID: msgID);
}