DirectionRouteSummary class

A class that encapsulates the summary of a DirectionRouteData.

Includes the distance and duration for travelling the route.

Constructors

DirectionRouteSummary({required double distance, required double duration})
const
DirectionRouteSummary.fromJson(Map<String, dynamic> json)
Generates a DirectionRouteSummary from a received Map having the keys 'distance' and 'duration'.
factory

Properties

distance double
The distance of the route.
final
duration double
The duration required to travel the route.
final
hashCode int
The hash code for this object.
no setterinherited
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
toJson() Map<String, dynamic>
Converts the DirectionRouteSummary to Map with keys 'distance' and 'duration'.
toString() String
A string representation of this object.
override

Operators

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