stickToBorder property
Specifies whether sublocation content sticks to screen borders. If true, content sticks to screen bounds; if false, content is centered. Default: true.
Example:
// Set stick to border property
_locationWindow!.stickToBorder = true;
print("Set stick to border to true");
Implementation
bool get stickToBorder {
final _getFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint8 Function(Pointer<Void>),
int Function(Pointer<Void>)
>('navigine_sdk_flutter_LocationWindow_stickToBorder_get'));
final _stickToBorderHandle = _getFfi(this.ptr);
final _result = (_stickToBorderHandle != 0);
exception.checkCallResult();
return _result;
}
Implementation
set stickToBorder(bool stickToBorder) {
final _setFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Void Function(Pointer<Void>, Uint8),
void Function(Pointer<Void>, int)
>('navigine_sdk_flutter_LocationWindow_stickToBorder_set'));
_setFfi(this.ptr, (stickToBorder ? 1 : 0));
exception.checkCallResult();
}