getUsersIBlocked static method

Future<void> getUsersIBlocked({
  1. bool fetchFromServer = false,
  2. required dynamic flyCallBack(
    1. FlyResponse response
    ),
})

Retrieves the list of users blocked by the current user.

This method fetches the list of users that the current user has blocked.

Params:

  • fetchFromServer : Whether to fetch the list from the server. Defaults to false.

Returns:

  • flyCallBack : A callback function that is called with a FlyResponse object upon completion.

Usage example:

Mirrorfly.getUsersIBlocked(
  fetchFromServer: true,
  flyCallBack: (response) {
    // Handle the response
    print("Blocked users list: $response");
  },
);

Implementation

static Future<void> getUsersIBlocked(
    {bool fetchFromServer = false,
    required Function(FlyResponse response) flyCallBack}) {
  return FlyChatFlutterPlatform.instance
      .getUsersIBlocked(fetchFromServer, flyCallBack);
}