DeviceOrientationEvent(String type, { bool canBubble: true, bool cancelable: true, num alpha: 0, num beta: 0, num gamma: 0, bool absolute: false })

Source

factory DeviceOrientationEvent(String type,
    {bool canBubble: true,
    bool cancelable: true,
    num alpha: 0,
    num beta: 0,
    num gamma: 0,
    bool absolute: false}) {
  DeviceOrientationEvent e = document._createEvent("DeviceOrientationEvent");
  e._initDeviceOrientationEvent(
      type, canBubble, cancelable, alpha, beta, gamma, absolute);
  return e;
}