getCurrentRouteArguments static method

dynamic getCurrentRouteArguments()

Get current route arguments

Implementation

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