anchorEnabled method

  1. @override
bool anchorEnabled()
override

Returns true if custom anchor is enabled.

Example:

bool anchorEnabled = _userLocationLayer!.anchorEnabled();
print("Anchor enabled: $anchorEnabled");

Implementation

@override
bool anchorEnabled() {
    final _anchorEnabledFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
        Uint8 Function(Pointer<Void>, ),
        int Function(Pointer<Void>, )
      >('navigine_sdk_flutter_UserLocationLayer_anchorEnabled'));
    final __resultHandle = _anchorEnabledFfi(this.ptr, );
    final _result = (__resultHandle != 0);
    exception.checkCallResult();
    return _result;
}