WaypointConnection class
El enlace entre dos paradas consecutivas del recorrido óptimo.
- Annotations
-
- @immutable
Constructors
- WaypointConnection({required String fromId, required String toId, required double distanceMeters, required Duration duration, Duration? restDuration, Duration? waitDuration})
-
Crea el enlace.
const
-
WaypointConnection.fromJson(Map<
String, dynamic> json) -
Lee el enlace de la respuesta del servicio.
factory
Properties
- distanceMeters → double
-
Cuántos metros hay.
final
- duration → Duration
-
Cuánto se tarda conduciendo.
final
- fromId → String
-
De qué parada sale.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- restDuration → Duration?
-
Descanso obligatorio del conductor en este trayecto.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- toId → String
-
A qué parada llega.
final
- waitDuration → Duration?
-
Espera hasta que abra la ventana horaria del destino.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited