stateName method

String stateName()

Get the state name of the route.

e.g. ("/my-page", (_) => MyPage()) -> Closure: () => _MyPageState

This is the name the page's NyPage listens on, so the same value can be passed to updateState, stateAction and NyStatefulWidget(stateName:).

Implementation

String stateName() => nyStateNameForRoute(this);