tripsByRouteShortName method
- String routeShortName
Filters the trips by route short name. Returns a list of trips that match the specified route short name.
Parameter:
routeShortName
: The short name of the route to filter by.
Returns: A list of PTTrip objects that match the specified route short name.
Implementation
List<PTTrip> tripsByRouteShortName(String routeShortName) => _trips
.where((trip) =>
trip.route.routeShortName != null &&
trip.route.routeShortName == routeShortName)
.toList();