getDebugFlag method

bool getDebugFlag(
  1. DebugFlag flag
)
override

Gets the state of a debug flag. flag The debug flag to query DebugFlag. Returns true if the debug flag is enabled, false otherwise.

Example:

bool infosOn = LocationWindow.getDebugFlag(DebugFlag.INFOS);
print("Debug flag INFOS enabled: $infosOn");

Implementation

bool getDebugFlag(DebugFlag flag) {
    final _getDebugFlagFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
        Uint8 Function(Uint32),
        int Function(int)
      >('navigine_sdk_flutter_LocationWindow_getDebugFlag__Flag'));
    final __resultHandle = _getDebugFlagFfi(DebugFlagImpl.toInt(flag));
    final _result = (__resultHandle != 0);
    return _result;
}