getCurrentRoute method

Route? getCurrentRoute()

Get the current route.

Implementation

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