getPreviousRouteName static method

String? getPreviousRouteName()

Get previous route name

Implementation

static String? getPreviousRouteName() {
  return NyNavigator.instance.router.getPreviousRoute()?.settings.name;
}