# WheelEvent constructor

WheelEvent(String type, { Window view, num deltaX: 0, num deltaY: 0, num deltaZ: 0, int deltaMode: 0, int detail: 0, int screenX: 0, int screenY: 0, int clientX: 0, int clientY: 0, int button: 0, bool canBubble: true, bool cancelable: true, bool ctrlKey: false, bool altKey: false, bool shiftKey: false, bool metaKey: false, EventTarget relatedTarget })

## Implementation

    factory WheelEvent(String type,
        {Window view,
        num deltaX: 0,
        num deltaY: 0,
        num deltaZ: 0,
        int deltaMode: 0,
        int detail: 0,
        int screenX: 0,
        int screenY: 0,
        int clientX: 0,
        int clientY: 0,
        int button: 0,
        bool canBubble: true,
        bool cancelable: true,
        bool ctrlKey: false,
        bool altKey: false,
        bool shiftKey: false,
        bool metaKey: false,
        EventTarget relatedTarget}) {
      var options = {
        'view': view,
        'deltaMode': deltaMode,
        'deltaX': deltaX,
        'deltaY': deltaY,
        'deltaZ': deltaZ,
        'detail': detail,
        'screenX': screenX,
        'screenY': screenY,
        'clientX': clientX,
        'clientY': clientY,
        'button': button,
        'bubbles': canBubble,
        'cancelable': cancelable,
        'ctrlKey': ctrlKey,
        'altKey': altKey,
        'shiftKey': shiftKey,
        'metaKey': metaKey,
        'relatedTarget': relatedTarget,
      };

      if (view == null) {
        view = window;
      }

      return JS('WheelEvent', 'new WheelEvent(#, #)', type,
          convertDartToNative_Dictionary(options));
    }