RoadInfo class

RoadInfo

this class is represent road information for specific road has unique key to remove road

contain 3 object distance,duration and list of route

distance : (double) distance of the road in km, can be null

duration : (double) duration of the road in seconds,can be null

route : (List of GeoPoint) the point route of the road can be empty

Available extensions

Constructors

RoadInfo({double? distance, double? duration, List<GeoPoint> route = const [], List<Instruction> instructions = const []})
RoadInfo.fromMap(Map map)

Properties

distance double?
final
duration double?
final
hashCode int
The hash code for this object.
no setteroverride
instructions List<Instruction>
final
key String
no setter
route List<GeoPoint>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyFromMap({required Map map}) RoadInfo
copyWith({String? roadKey, double? distance, double? duration, List<Instruction>? instructions = const [], List<GeoPoint>? route = const []}) RoadInfo
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 ==(Object other) bool
The equality operator.
override