getSublocationId method
Returns current sublocation ID if set, otherwise null.
Example:
int? currentId = _locationWindow!.getSublocationId();
if (currentId != null) {
print("Current sublocation id: $currentId");
} else {
print("Current sublocation id is not set");
}
Implementation
@override
int? getSublocationId() {
final _getSublocationIdFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Pointer<Void> Function(Pointer<Void>, ),
Pointer<Void> Function(Pointer<Void>, )
>('navigine_sdk_flutter_LocationWindow_getSublocationId'));
final _handle = this.handle;
final __resultHandle = _getSublocationIdFfi(_handle, );
final _result = navigine_sdk_flutter_int_FromFfiNullable(__resultHandle);
navigine_sdk_flutter_int_ReleaseFfiHandleNullable(__resultHandle);
return _result;
}