setTarget method

  1. @override
void setTarget(
  1. LocationPoint target
)
override

@brief Method is used to set target point in your location. Through @see RouteListener "RouteListener" you will be notified about new paths to target point. @param target finish @see LocationPoint "LocationPoint".

Dart code snippet: @snippet route_manager_example.dart dart_RouteManager_setTarget

Implementation

@override
void setTarget(LocationPoint target) {
    final _setTargetFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
        Void Function(Pointer<Void>, Pointer<Void>),
        void Function(Pointer<Void>, Pointer<Void>)
      >('navigine_sdk_flutter_RouteManager_setTarget__Target'));
    final _targetHandle = navigine_sdk_flutter_LocationPoint_ToFfi(target);
    final _handle = this.handle;
    _setTargetFfi(_handle, _targetHandle);
    navigine_sdk_flutter_LocationPoint_ReleaseFfiHandle(_targetHandle);
}