MouseEventInit constructor

MouseEventInit({
  1. int? screenX,
  2. int? screenY,
  3. int? clientX,
  4. int? clientY,
  5. int? button,
  6. int? buttons,
  7. EventTarget? relatedTarget,
})

Implementation

factory MouseEventInit(
        {int? screenX,
        int? screenY,
        int? clientX,
        int? clientY,
        int? button,
        int? buttons,
        EventTarget? relatedTarget}) =>
    MouseEventInit._(
        screenX: screenX ?? 0,
        screenY: screenY ?? 0,
        clientX: clientX ?? 0,
        clientY: clientY ?? 0,
        button: button ?? 0,
        buttons: buttons ?? 0,
        relatedTarget: relatedTarget ?? undefined);