getDebugFlag method
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 _flagHandle = navigine_sdk_flutter_DebugFlag_ToFfi(flag);
final __resultHandle = _getDebugFlagFfi(_flagHandle);
navigine_sdk_flutter_DebugFlag_ReleaseFfiHandle(_flagHandle);
final _result = navigine_sdk_flutter_bool_FromFfi(__resultHandle);
navigine_sdk_flutter_bool_ReleaseFfiHandle(__resultHandle);
return _result;
}