PTStop constructor

PTStop({
  1. required int stopId,
  2. required String stopName,
  3. bool? isStation,
  4. 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,
});