removeProfileImage static method

Future<void> removeProfileImage({
  1. required dynamic flyCallBack(
    1. FlyResponse response
    ),
})

Removes the profile image of the current user.

This method asynchronously removes the profile image of the current user on the Mirrorfly platform. Upon completion, the provided callback function flyCallBack is invoked with a FlyResponse object, which contains information about the success or failure of the operation.

Example usage:

await Mirrorfly.removeProfileImage(flyCallBack: (response) {
  if (response.isSuccess) {
    print("Profile image removed successfully");
  } else {
    print("Failed to remove profile image");
  }
});

Implementation

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