dragWindow method

dynamic dragWindow({
  1. required Key key,
  2. required double dx,
  3. required double dy,
})

Implementation

dragWindow({required Key key, required double dx, required double dy}) {
  final wwi = _findWindowWithIndex(key);

  final newWindow = wwi.windowState.copyWith(
    x: wwi.windowState.x + dx,
    y: wwi.windowState.y + dy,
  );

  _windows[wwi.index] = newWindow;
  notifyListeners();
}