ApiSuccessNavigation.replace constructor

const ApiSuccessNavigation.replace(
  1. String route, {
  2. Object? args,
})

Calls Get.offNamed(route) after a successful response.

Implementation

const ApiSuccessNavigation.replace(String route, {Object? args})
    : this(
  action: NavigationAction.pushReplacement,
  routeName: route,
  arguments: args,
);