TrafficUsage enum Routes & Navigation

Traffic usage type.

Controls how the SDK applies traffic information during routing and navigation. Choose the appropriate mode depending on whether you want to rely on online traffic updates, offline data only, or disable traffic altogether.

Also see:

Inheritance
Available extensions

Values

none → const TrafficUsage

No traffic: disable all traffic usage in routing and navigation.

online → const TrafficUsage

Online and offline (default): combines server-provided traffic with available offline data.

offline → const TrafficUsage

Offline only: rely exclusively on offline traffic data and user-defined roadblocks.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Constants

values → const List<TrafficUsage>
A constant List of the values in this enum, in order of their declaration.