DeviceMotionEventInit constructor

DeviceMotionEventInit({
  1. DeviceMotionEventAccelerationInit? acceleration,
  2. DeviceMotionEventAccelerationInit? accelerationIncludingGravity,
  3. num? interval,
  4. DeviceMotionEventRotationRateInit? rotationRate,
  5. bool? bubbles,
  6. bool? cancelable,
  7. bool? composed,
})

Implementation

factory DeviceMotionEventInit({
  _i3.DeviceMotionEventAccelerationInit? acceleration,
  _i3.DeviceMotionEventAccelerationInit? accelerationIncludingGravity,
  _i2.num? interval,
  _i3.DeviceMotionEventRotationRateInit? rotationRate,
  _i2.bool? bubbles,
  _i2.bool? cancelable,
  _i2.bool? composed,
}) =>
    DeviceMotionEventInit._(
      acceleration: acceleration ?? _i6.undefined,
      accelerationIncludingGravity:
          accelerationIncludingGravity ?? _i6.undefined,
      interval: interval,
      rotationRate: rotationRate ?? _i6.undefined,
      bubbles: bubbles,
      cancelable: cancelable,
      composed: composed,
    );