stateName method
Get the state name of the route.
Implementation
String stateName() {
String fullPath = this.$2.toString();
String pathName = fullPath.split(" => ").last;
String template = "Closure: () => _{page_name}State";
return template.replaceAll("{page_name}", pathName);
}