addTarget method
Method is used to add target point in your location.
Through RouteListener you will be notified about new paths to target point.
target finish LocationPoint.
Example:
// Add additional target point
LocationPoint additionalTarget = LocationPoint(point: Point(x: 90.0, y: 100.0), locationId: 12345, sublocationId: 1);
_routeManager!.addTarget(additionalTarget);
Implementation
@override
void addTarget(LocationPoint target) {
final _addTargetFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Void Function(Pointer<Void>, LocationPointNative),
void Function(Pointer<Void>, LocationPointNative)
>('navigine_sdk_flutter_RouteManager_addTarget__Target'));
_addTargetFfi(this.ptr, LocationPointImpl.toNative(target));
exception.checkCallResult();
}