getUsersWhoBlockedMe static method

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

Retrieves a list of users who have blocked the current user.

This method retrieves a list of users who have blocked the current user from accessing their profiles or interacting with them. The list may be fetched either from local DB or from the server, depending on the value of the fetchFromServer parameter.

If fetchFromServer is set to true, the method will fetch the list of blocked users from the server, ensuring that the most up-to-date data is obtained. If set to false, the method will attempt to retrieve the data from the local DB, if available, which may result in faster response times but potentially outdated data.

Note: This method is a static member of the UserUtils class.

Parameters:

  • fetchFromServer: A boolean flag indicating whether to fetch the list of blocked users from the server (true) or from the local DB (false). Defaults to false.

Returns: A Future that completes with the list of users who have blocked the current user. The type of the list may vary depending on the implementation, so it is returned as String.

Implementation

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