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
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