produceRotationRate static method

RotationRate produceRotationRate({
  1. DateTime? acquisitionTime,
  2. double x = 0.0,
  3. double y = 0.0,
  4. double z = 0.0,
})

Produces a new RotationRate from provided parameters

Implementation

static RotationRate produceRotationRate({
  final DateTime? acquisitionTime,
  final double x = 0.0,
  final double y = 0.0,
  final double z = 0.0,
}) {
  return RotationRateImpl(
    type: DataType.rotationRate,
    acquisitionTime: acquisitionTime ?? DateTime.now(),
    x: x,
    y: y,
    z: z,
  );
}