tripsByRouteType method
- PTRouteType routeType
Filters the trips by route type and returns a list of trips that match the specified route type.
Parameters
- IN routeType The type of the route to filter by.
Returns
A list of PTTrip objects that match the specified route type.
Implementation
List<PTTrip> tripsByRouteType(PTRouteType routeType) =>
_trips.where((PTTrip trip) => trip.route.routeType == routeType).toList();