top property

RouteNode? get top

The route on top, or null while the stack is empty.

Implementation

RouteNode? get top => routes.lastOrNull;