PTStop constructor
PTStop({
- required int stopId,
- required String stopName,
- bool? isStation,
- required List<
PTRouteInfo> routes, - List<
PTAlertInfo> alerts = const <PTAlertInfo>[],
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.alerts: (List<PTAlertInfo>) Service alerts scoped to this stop.
Implementation
PTStop({
required this.stopId,
required this.stopName,
this.isStation,
required this.routes,
this.alerts = const <PTAlertInfo>[],
});