CoffeeMapboxGeometryResponse class

Represents the parsed result of a GeoJSON geometry.

This model abstracts the raw GeoJSON feature into two main renderable forms:

  • polylines: for LineString or MultiLineString geometries.
  • markers: for Point geometries.

The type property stores the original geometry type from the GeoJSON.

Annotations

Constructors

CoffeeMapboxGeometryResponse({required String type, List<CoffeeMapboxPolyline> polylines = const [], List<CoffeeMapboxMarker> markers = const []})
Creates a new CoffeeMapboxGeometryResponse.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
hasMarkers → bool
Returns true if there is at least one marker in markers.
no setter
hasPolylines → bool
Returns true if there is at least one polyline in polylines.
no setter
markers → List<CoffeeMapboxMarker>
A list of markers extracted from the geometry.
final
polylines → List<CoffeeMapboxPolyline>
A list of polylines extracted from the geometry.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → String
The geometry type parsed from GeoJSON. Examples: "LineString", "MultiLineString", "Point".
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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