routesAndNames property

Map<String, String> routesAndNames

Returns a Map of routes and respective names.

Implementation

Map<String, String> get routesAndNames =>
    Map.fromEntries(routes.map((r) => MapEntry(r, getRouteName(r) ?? r)));