state property
String?
get
state
State name
The stateName given to the constructor, otherwise the name derived from
this widget's class - e.g. MyPage -> Closure: () => _MyPageState.
This is the name the widget's NyPage or NyState listens on, and the same name RouteViewExt.stateName gives a sender holding the widget's RouteView, so both ends read one class: this one.
Implementation
String? get state =>
declaredStateName ?? nyStateNameForWidget(runtimeType.toString());