loadNextMessages static method

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

This loadNextMessages is used to fetch next set of 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 set contains the limit/length set in initializeMessageList method

Implementation

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