querySessionList method Null safety

Future<NIMResult<List<NIMSession>>> querySessionList(
  1. [int? limit]
)

Get the list of recent conversations.

The recent conversation list refers to the list of recent contacts who have chatted with the user. When the user gets a message from a new contact, the SDK will automatically generate a conversation object in the local database. The recent conversation list contains data including the contact accounts, contact types, time when the last message is received, status of the last message, content of the last message, and unread count.

limit Specify the maximum number of recent conversations that can be obtained (upper limit: 100); if no value is passed in, all conversations will be returned.

Implementation

Future<NIMResult<List<NIMSession>>> querySessionList([int? limit]) async {
  return _platform.querySessionList(limit);
}