DirectionsRequest constructor

DirectionsRequest({
  1. required Point from,
  2. required Point to,
  3. String? poiToIdentifier,
  4. Angle? bearingFrom,
  5. bool? minimizeFloorChanges,
  6. AccessibilityMode? accessibilityMode,
  7. String destinationIdentifier = EMPTY_ID,
  8. String destinationCategory = CATEGORY_LOCATION,
  9. String originIdentifier = EMPTY_ID,
  10. String originCategory = CATEGORY_LOCATION,
})

Implementation

DirectionsRequest({
  required this.from,
  required this.to,
  this.poiToIdentifier,
  this.bearingFrom,
  this.minimizeFloorChanges,
  this.accessibilityMode,
  this.destinationIdentifier = EMPTY_ID,
  this.destinationCategory = CATEGORY_LOCATION,
  this.originIdentifier = EMPTY_ID,
  this.originCategory = CATEGORY_LOCATION,
}) {
  // This buildingId is useful on the native side.
  buildingIdentifier = from.buildingIdentifier;
}