getC2CHistoryMessageList method Null safety
Get historical one-to-one messages
Parameter
count The number of messages to be pulled should not be too many, which will affect the speed of message pulling. It is recommended to pull 20 messages at a time.
lastMsg Get the starting message of the message. If null is passed, the starting message is the session's Latest news
Note:
If the SDK detects that there is no network, it will directly return the local data by default
Implementation
Future<V2TimValueCallback<List<V2TimMessage>>> getC2CHistoryMessageList({
required String userID,
required int count,
String? lastMsgID,
}) async {
return ImFlutterPlatform.instance.getC2CHistoryMessageList(
userID: userID, count: count, lastMsgID: lastMsgID);
}