TravelMode class

Represents an enum of various travel modes.

The valid travel modes that can be specified in a DirectionsRequest as well as the travel modes returned in a DirectionsStep. Specify these by value, or by using the constant's name.

Constructors

TravelMode(String _name)
const

Properties

hashCode int
The hash code for this object.
no setteroverride
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.
override

Operators

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

Static Properties

values List<TravelMode>
final

Constants

bicycling → const TravelMode
Specifies a bicycling directions request.
driving → const TravelMode
Specifies a driving directions request.
transit → const TravelMode
Specifies a transit directions request.
walking → const TravelMode
Specifies a walking directions request.