PTStop constructor
- required int stopId,
- required String stopName,
- bool? isStation,
- required List<
PTRouteInfo> routes,
Create a PTStop.
API users do not typically create instances of this class directly.
Parameters
stopId: (int) Numeric stop identifier.stopName: (String) Display name of the stop.isStation: (bool?) True when the stop is a station (may be null).routes: (List<PTRouteInfo>) Routes that serve this stop.
Implementation
PTStop({
required this.stopId,
required this.stopName,
this.isStation,
required this.routes,
});