setDebugFlag method

void setDebugFlag(
  1. DebugFlag flag,
  2. bool on
)
override

Sets the state of a debug flag. flag The debug flag to set DebugFlag. on Specifies whether the debug flag is enabled (true) or disabled (false).

Example:

LocationWindow.setDebugFlag(DebugFlag.INFOS, true);
LocationWindow.setDebugFlag(DebugFlag.STATS, false);
print("Updated debug flags on LocationWindow");

Implementation

void setDebugFlag(DebugFlag flag, bool on) {
    final _setDebugFlagFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
        Void Function(Uint32, Uint8),
        void Function(int, int)
      >('navigine_sdk_flutter_LocationWindow_setDebugFlag__Flag_On'));
    final _flagHandle = navigine_sdk_flutter_DebugFlag_ToFfi(flag);
    final _onHandle = navigine_sdk_flutter_bool_ToFfi(on);
    _setDebugFlagFfi(_flagHandle, _onHandle);
    navigine_sdk_flutter_DebugFlag_ReleaseFfiHandle(_flagHandle);
    navigine_sdk_flutter_bool_ReleaseFfiHandle(_onHandle);
}