isFocused method

Future<bool> isFocused()

Returns bool - Whether window is focused.

@platforms macos,windows

Implementation

Future<bool> isFocused() async {
  return await _channel.invokeMethod('isFocused');
}