NextBuses class

Contains a set of predictions for the next buses at a stop.

Constructors

NextBuses({required String stopName, required List<Prediction> predictions})
Creates a new NextBuses instance.
const
NextBuses.empty()
Creates an empty NextBuses instance.
const
NextBuses.fromJson(Map<String, dynamic> json)
Creates a new NextBuses instance from a JSON object.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
isEmpty bool
Whether or not this NextBuses is empty.
no setter
isNotEmpty bool
Whether or not this NextBuses is not empty.
no setter
predictions List<Prediction>
List of Predictions for the next buses.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stopName String
Full name of the bus stop.
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