code property Null safety

int code

The internal constant used by Windows.

Implementation

int get code {
  switch (this) {
    case WinEvent.select:
      return 0x0400;
    case WinEvent.contextMenu:
      return 0x007b;
    case WinEvent.mouseFirst:
    case WinEvent.mouseMove:
      return 0x0200;
    case WinEvent.leftButtonDown:
      return 0x0201;
    case WinEvent.leftButtonUp:
      return 0x0202;
    case WinEvent.leftButtonDoubleClick:
      return 0x0203;
    case WinEvent.rightButtonDown:
      return 0x0204;
    case WinEvent.rightButtonUp:
      return 0x0205;
    case WinEvent.rightButtonDoubleClick:
      return 0x0206;
    case WinEvent.middleButtonDown:
      return 0x0207;
    case WinEvent.middleButtonUp:
      return 0x0208;
    case WinEvent.middleButtonDoubleClick:
      return 0x0209;
  }
}