PTStopScheduleFilter constructor

const PTStopScheduleFilter({
  1. List<int> routeIds = const <int>[],
  2. List<String> lineNames = const <String>[],
  3. List<String> headings = const <String>[],
  4. int maxRows = 0,
  5. Duration? window,
  6. DateTime? time,
  7. bool shapes = false,
})

Creates a PTStopScheduleFilter.

Parameters

  • routeIds: Keep departures whose route id is in this set.
  • lineNames: Keep departures whose route short name is in this set.
  • headings: Optional direction restriction for lineNames matches.
  • maxRows: Departures to return; 0 = server default.
  • window: Forward search horizon from time; null = server default.
  • time: Absolute time to search forward from; null = now.
  • shapes: Request the route shapes; false = no shapes.

Implementation

const PTStopScheduleFilter({
  this.routeIds = const <int>[],
  this.lineNames = const <String>[],
  this.headings = const <String>[],
  this.maxRows = 0,
  this.window,
  this.time,
  this.shapes = false,
});