TrafficParameters class Routes & Navigation

Provides additional, read-only parameters that describe a traffic event. Typical information includes estimated speed impact, expected delay, severity level, and a short descriptive label or reason for the event.

Obtain an instance via TrafficEvent.getPreviewData. The method may return null when no preview data is available for a given event.

Constructors

TrafficParameters({required String id, required int iconId, required int alertc, required int delay, required String description, required DateTime startStamp, required DateTime endStamp, required String from, required String to, required RouteTransportMode transportMode})
Creates a new TrafficParameters instance.
TrafficParameters.fromParameters(List<GemParameter> params)
factory

Properties

alertc int
final
delay int
final
description String
final
endStamp DateTime
final
from String
final
hashCode int
The hash code for this object.
no setterinherited
iconId int
final
id String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startStamp DateTime
final
to String
final
transportMode RouteTransportMode
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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