getRoute method Null safety
- String routeId
Implementation
Route? getRoute(String routeId) {
if (_routes == null) {
return null;
}
return _routes!.containsKey(routeId)
? Route.fromJson(_routes![routeId])
: null;
}
Route? getRoute(String routeId) {
if (_routes == null) {
return null;
}
return _routes!.containsKey(routeId)
? Route.fromJson(_routes![routeId])
: null;
}