getPreviousRouteArguments static method

dynamic getPreviousRouteArguments()

Get previous route arguments

Implementation

static dynamic getPreviousRouteArguments() {
  dynamic argumentsWrapper =
      NyNavigator.instance.router.getPreviousRoute()?.settings.arguments;
  if (argumentsWrapper is ArgumentsWrapper) {
    return argumentsWrapper.getData();
  }
  return argumentsWrapper;
}