getRecentChatList static method
Retrieves the recent chat list from the Mirrorfly chat platform.
This static method asynchronously fetches the list of recent chats from the Mirrorfly chat platform by calling the corresponding method on the FlyChatFlutterPlatform instance.
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.
Example usage:
await Mirrorfly.getRecentChatList(flyCallback: (response) {
// Handle the response here
if (response.isSuccess && response.hasData) {
}
);
Implementation
// var data = recentChatFromJson(response.data);
// }
/// }
/// );
/// ```
static Future<void> getRecentChatList(
{required Function(FlyResponse response) flyCallBack}) {
return FlyChatFlutterPlatform.instance.getRecentChatList(flyCallBack);
}