DirectionRouteSegmentStep class

A class that encapsulates one step of all the steps need to travel a DirectionRouteSegment.

Includes the distance, duration and instruction for travelling the DirectionRouteSegment's step with its name, as well as the type, and wayPoints for the step.

Constructors

DirectionRouteSegmentStep({required double distance, required double duration, required int type, required String instruction, required String name, required List<double> wayPoints})
const
DirectionRouteSegmentStep.fromJson(Map<String, dynamic> json)
Generates a DirectionRouteSegmentStep from a received Map having the keys 'distance', 'duration', 'type', 'instruction', 'name', 'way_points'.
factory

Properties

distance double
The distance of the route segment step.
final
duration double
The duration required to travel the route segment step.
final
hashCode int
The hash code for this object.
no setterinherited
instruction String
The instruction needed to be followed to travel the route segment step.
final
name String
The name of the route segment step.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type int
The type of the route segment step.
final
wayPoints List<double>
The list of waypoints marking the route segment step.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the DirectionRouteSegmentStep to a Map with keys 'distance', 'duration', 'type', 'instruction', 'name', and 'way_points'.
toString() String
A string representation of this object.
override

Operators

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