getUserLocationLayer method

  1. @override
UserLocationLayer getUserLocationLayer(
  1. LocationWindow locationWindow
)
override

Create layer with the user location icon.

Implementation

@override
UserLocationLayer getUserLocationLayer(LocationWindow locationWindow) {
    final _getUserLocationLayerFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
        Pointer<Void> Function(Pointer<Void>, Pointer<Void>),
        Pointer<Void> Function(Pointer<Void>, Pointer<Void>)
      >('navigine_sdk_flutter_NavigineSdk_getUserLocationLayer__LocationWindow'));
    final _locationWindowHandle = navigine_sdk_flutter_LocationWindow_ToFfi(locationWindow);
    final _handle = this.handle;
    final __resultHandle = _getUserLocationLayerFfi(_handle, _locationWindowHandle);
    navigine_sdk_flutter_LocationWindow_ReleaseFfiHandle(_locationWindowHandle);
    final _result = navigine_sdk_flutter_UserLocationLayer_FromFfi(__resultHandle);
    navigine_sdk_flutter_UserLocationLayer_ReleaseFfiHandle(__resultHandle);
    return _result;
}