unblock method

Future<void> unblock(
  1. String profileId
)

Implementation

Future<void> unblock(String profileId) async {
  AppConfig.logger.d("Unblock Mate: $profileId");

  try {
    if (await ProfileFirestore().unblockProfile(profileId: userServiceImpl.profile.id, profileToUnblock:  profileId)) {
      userServiceImpl.profile.blockTo!.remove(profileId);

    } else {
      AppConfig.logger.i("Somethnig happened while unblocking profile");
    }
  } catch (e) {
    AppConfig.logger.e(e.toString());
  }

  Get.back();
  update();
}