getCurrentRoute method

Route? getCurrentRoute()

Get the current route.

Implementation

Route<dynamic>? getCurrentRoute() {
  if (_routeHistory.isEmpty) return null;
  return _routeHistory[_routeHistory.length - 1];
}