NextTrain constructor

NextTrain({
  1. required String locationCode,
  2. required String locationName,
  3. int? numCars,
  4. required String destination,
  5. String? destinationCode,
  6. String? destinationName,
  7. required int group,
  8. required String line,
  9. required int? minutesAway,
  10. TrainStatus? specialStatus,
})

Creates a new NextTrain instance.

Implementation

NextTrain({
  required this.locationCode,
  required this.locationName,
  this.numCars,
  required this.destination,
  this.destinationCode,
  this.destinationName,
  required this.group,
  required this.line,
  required this.minutesAway,
  this.specialStatus,
});