DeviceMotionEventInit constructor
DeviceMotionEventInit({
- DeviceMotionEventAccelerationInit? acceleration,
- DeviceMotionEventAccelerationInit? accelerationIncludingGravity,
- DeviceMotionEventRotationRateInit? rotationRate,
- double? interval,
Implementation
factory DeviceMotionEventInit(
{DeviceMotionEventAccelerationInit? acceleration,
DeviceMotionEventAccelerationInit? accelerationIncludingGravity,
DeviceMotionEventRotationRateInit? rotationRate,
double? interval}) =>
DeviceMotionEventInit._(
acceleration: acceleration ?? undefined,
accelerationIncludingGravity:
accelerationIncludingGravity ?? undefined,
rotationRate: rotationRate ?? undefined,
interval: interval ?? 0);