Prediction class

Represents a prediction for a bus arrival at a stop.

Constructors

Prediction({required int directionNum, required String direction, required int minutesAway, required String routeID, required String tripID, required String vehicleID})
Creates a new Prediction instance.
const
Prediction.empty()
Creates an empty Prediction instance.
Prediction.fromJson(Map<String, dynamic> json)
Creates a new Prediction instance from a JSON object.
factory

Properties

direction String
General direction of the trip (e.g.: NORTH, SOUTH, EAST, WEST).
final
directionNum int
Denotes a binary direction (0 or 1) of the bus.
final
hashCode int
The hash code for this object.
no setteroverride
isEmpty bool
Whether or not this Prediction is empty.
no setter
isNotEmpty bool
Whether or not this Prediction is not empty.
no setter
minutesAway int
Minutes until bus arrival at this stop.
final
routeID String
Base route name as shown on the bus.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tripID String
Unique identifier for the trip.
final
vehicleID String
Unique identifier for the bus. This is usually visible on the bus itself.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns a JSON representation of this object.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override