isWindowVisible method

bool isWindowVisible(
  1. String windowId
)

Check if a palette window is currently visible.

Returns false if the window doesn't exist or isn't visible.

Implementation

bool isWindowVisible(String windowId) {
  final idPtr = windowId.toNativeUtf8().cast<Char>();
  try {
    return _bindings.IsWindowVisible(idPtr);
  } finally {
    calloc.free(idPtr);
  }
}