loadPreviousMessages static method

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

This loadPreviousMessages is used to fetch previous 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> loadPreviousMessages(
    {required Function(FlyResponse response) flyCallback}) {
  return FlyChatFlutterPlatform.instance.loadPreviousMessages(flyCallback);
}