Road class Null safety

Constructors

Road({required double distance, required double duration, required List<RoadInstruction> instructions, required String? polylineEncoded, List<Road>? alternativesRoads})
Road.empty()
Road.fromOSRMJson(Map route, String languageCode)
Road.minimize({required double distance, required double duration, String? polylineEncoded})
Road.withError()

Properties

alternativeRoads List<Road>?
read-only
canDrawRoad bool
read-only
details RoadDetailInfo
read / write
distance double
this attribute is the distance of the route in km
final
duration double
this attribute is the duration of route in second
final
hashCode int
The hash code for this object.
read-onlyinherited
instructions List<RoadInstruction>
the instruction that user should follow to reach t destination from started location
read / write
polyline List<LngLat>?
this is list of geopoint of the route,this attribute is not null if geometry equal to geojson except that use always polylineEncoded
read / write
polylineEncoded String?
this is the encoded list of lnglat that should decoded to get list of geopoint this attribute can be null if the geometry == geojson
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

addAlternativeRoute(Road road) → void
copyWith({double? distance, double? duration, List<RoadInstruction>? instructions, String? polylineEncoded, List<Road>? alternativesRoads}) Road
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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