OsrmGeometry class

OsrmGeometry it have 3 values

Inheritance

Constructors

OsrmGeometry({OsrmLineString? lineString, OsrmPolyline? polyline, OsrmPolyline6? polyline6})

Properties

hashCode int
The hash code for this object.
no setterinherited
lineString OsrmLineString?
lineString the geometry as a OsrmLineString, it be filled if the OsrmGeometries is OsrmGeometries.geojson
final
polyline OsrmPolyline?
polyline the geometry as a OsrmPolyline, it be filled if the OsrmGeometries is OsrmGeometries.polyline
final
polyline6 OsrmPolyline6?
polyline6 the geometry as a OsrmPolyline6, it be filled if the OsrmGeometries is OsrmGeometries.polyline6
final
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
toMap() → dynamic
toMap method to get the OsrmGeometry as a json map here toMap is little bit different from other models it can return a Map or a String
override
toString() String
A string representation of this object.
inherited
toValue() → dynamic
toValue method to get the OsrmGeometry as a dynamic value

Operators

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

Static Methods

detect(dynamic geometry) OsrmGeometries?
detect is static method to detect the geometry is OsrmGeometries.geojson or OsrmGeometries.polyline or OsrmGeometries.polyline6
from(dynamic geometry) OsrmGeometry
from method to get the OsrmGeometry from a dynamic value