currentRouteName property

String currentRouteName

Name of the active route. Route, that's currently on top of Navigator stack.

Implementation

String get currentRouteName => _renderElement!.getCurrentRouteName();