getMessages method

  1. @override
Future<List?> getMessages({
  1. required String conversationId,
  2. int? messageCount,
})
override

Get messages from the specific conversation #

Implementation

@override
Future<List?> getMessages(
    {required String conversationId, int? messageCount}) async {
  final List? messages = await methodChannel.invokeMethod('getMessages',
      {"conversationId": conversationId, "messageCount": messageCount});
  //print("messages->$messages");
  return messages ?? [];
}