dock method

Future<void> dock({
  1. required DockSide side,
  2. required int width,
})

Docks the window. only works on Windows

@platforms windows

Implementation

Future<void> dock({required DockSide side, required int width}) async {
  final Map<String, dynamic> arguments = {
    'left': side == DockSide.left,
    'right': side == DockSide.right,
    'width': width,
  };
  await _channel.invokeMethod('dock', arguments);
}