isDocked method

Future<DockSide?> isDocked()

Returns bool - Whether the window is docked.

@platforms windows

Implementation

Future<DockSide?> isDocked() async {
  int? docked = await _channel.invokeMethod('isDocked');
  if (docked == 0) return null;
  if (docked == 1) return DockSide.left;
  if (docked == 2) return DockSide.right;
  return null;
}