next property

Route? next

Gets the next route in the navigation history, which is the most recently popped route.

Implementation

Route<dynamic>? get next => _poppedRoutes.last;