KeyEvent.wheel constructor

KeyEvent.wheel({
  1. required bool up,
  2. required int x,
  3. required int y,
})

A wheel step (KeyType.wheelUp when up, else KeyType.wheelDown) with the pointer at the 0-based cell (x, y).

Implementation

factory KeyEvent.wheel({required bool up, required int x, required int y}) =>
    KeyEvent(up ? KeyType.wheelUp : KeyType.wheelDown, x: x, y: y);