currentRoute property

String? get currentRoute

Implementation

String? get currentRoute {
  if (routeHistory.isEmpty) {
    return null;
  }

  return routeHistory.last;
}