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'));
    _setDebugFlagFfi(DebugFlagImpl.toInt(flag), (on ? 1 : 0));
}