RoutePoint class

A point to be displayed and visited on the route map.

Use extra to carry fields from your own data model alongside the route point without losing them after routing is complete.

RoutePoint(
  id: '1',
  title: 'Coffee Shop',
  location: LatLng(41.01, 28.97),
  extra: {'originalModel': myPoint},
)

Constructors

RoutePoint({required String id, required String title, required LatLng location, Map<String, dynamic> extra = const {}})
const

Properties

extra Map<String, dynamic>
Optional extra data from your own model.
final
hashCode int
The hash code for this object.
no setterinherited
id String
Unique identifier for this point.
final
location → LatLng
Geographic coordinates of this point.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String
Display name shown on the map marker and the result list.
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