getLastMessages method

  1. @override
Future<List?> getLastMessages({
  1. required String conversationId,
})
override

Get list of conversations for logged in user last message#

Implementation

@override
Future<List?> getLastMessages({required String conversationId}) async {
  final List? lastMessageList = await methodChannel.invokeMethod(
      'getLastMessages',
      {"conversationId": conversationId});
  return lastMessageList ?? [];
}