getId method
Returns int - The ID of the window.
On macOS this is the window-server number; on Windows it is the HWND, matching 0.5.x. Other platforms return nativeapi's window id.
Implementation
Future<int> getId() async {
final window = _target;
if (window == null) return 0;
if (Platform.isWindows) return window.nativeObject.address;
if (Platform.isMacOS) return window.nativeNumber;
return window.id;
}