loadMessages static method

Future<void> loadMessages({
  1. required dynamic flyCallback(
    1. FlyResponse response
    ),
})

This loadMessages is used to Fetch initial conversations between you and a single chat user or group. The flyCallBack parameter is a function that will be called upon completion of the operation. It receives a FlyResponse object as a parameter, which contains information about the success or failure of the operation.

This method should be called only after the initializeMessageList Method.

Implementation

static Future<void> loadMessages(
    {required Function(FlyResponse response) flyCallback}) {
  return FlyChatFlutterPlatform.instance.loadMessages(flyCallback);
}