TrainPosition constructor

const TrainPosition({
  1. required int numCars,
  2. required String circuitId,
  3. String? destinationStationCode,
  4. required int directionNum,
  5. String? lineCode,
  6. required int secondsAtLocation,
  7. required ServiceType serviceType,
  8. required String trainId,
  9. required String trainNumber,
})

Creates a new TrainPosition object.

Implementation

const TrainPosition({
  required this.numCars,
  required this.circuitId,
  this.destinationStationCode,
  required this.directionNum,
  this.lineCode,
  required this.secondsAtLocation,
  required this.serviceType,
  required this.trainId,
  required this.trainNumber,
});