startResizing method

Future<void> startResizing(
  1. ResizeEdge resizeEdge
)

Starts a window resize based on the specified mouse-down & mouse-move event. On Windows, this is disabled during full screen mode.

Supported Platforms:

  • Windows

Implementation

Future<void> startResizing(ResizeEdge resizeEdge) async {
  if (Platform.isWindows && await isFullScreen()) return;
  await _invokeMethod<bool>(
    'startResizing',
    {
      'resizeEdge': resizeEdge.name,
      'top': resizeEdge == ResizeEdge.top ||
          resizeEdge == ResizeEdge.topLeft ||
          resizeEdge == ResizeEdge.topRight,
      'bottom': resizeEdge == ResizeEdge.bottom ||
          resizeEdge == ResizeEdge.bottomLeft ||
          resizeEdge == ResizeEdge.bottomRight,
      'right': resizeEdge == ResizeEdge.right ||
          resizeEdge == ResizeEdge.topRight ||
          resizeEdge == ResizeEdge.bottomRight,
      'left': resizeEdge == ResizeEdge.left ||
          resizeEdge == ResizeEdge.topLeft ||
          resizeEdge == ResizeEdge.bottomLeft,
    },
  );
}