top property

Route? get top

Gets the top route in the navigation stack.

Implementation

Route<dynamic>? get top => _history.last;