TransitLeg class
Transit Leg
Constructors
-
TransitLeg.new({required String travelMode, required num duration, required num distance, required TransitPlace startLocation, required TransitPlace endLocation, required TransitTransport? transport, String? polyline, required List<
LatLng> decodedPolyline, required LatLngBounds bounds, List<TransitAttribution> ? attributions}) - TransitLeg
-
TransitLeg.fromJson(Map<
String, dynamic> json) -
Creates an instance of TransitLeg from a JSON map.
factory
Properties
-
attributions
→ List<
TransitAttribution> ? -
attributions
final
- bounds ↔ LatLngBounds
-
The bounds of the leg
getter/setter pair
-
decodedPolyline
↔ List<
LatLng> -
The decoded polyline for the leg.
getter/setter pair
- distance → num
-
The leg length in meters
final
- duration → num
-
The leg duration in seconds.
final
- endLocation → TransitPlace
-
The ending location of the leg
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- polyline → String?
-
The google-encoded polyline for the leg
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startLocation → TransitPlace
-
The starting location of the leg
final
- transport → TransitTransport?
-
The transport used for the leg
final
- travelMode → String
-
The travel mode for the leg
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts an instance of TransitLeg to a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited