handleAccountSettings method

Future<void> handleAccountSettings()

Implementation

Future<void> handleAccountSettings() async {
  if(toRoute == AppRouteConstants.accountRemove) {
    changeSubtitle(CommonTranslationConstants.removingAccount);
    await userServiceImpl.removeAccount();
  } else if (toRoute == AppRouteConstants.profileRemove) {
    changeSubtitle(CommonTranslationConstants.removingProfile);
    await userServiceImpl.removeProfile();
    Get.offAllNamed(AppRouteConstants.home);
  }
}