ESenseSensor.fromSensorEvent constructor

ESenseSensor.fromSensorEvent({
  1. required String deviceName,
  2. required SensorEvent event,
})

Implementation

factory ESenseSensor.fromSensorEvent(
        {required String deviceName, required SensorEvent event}) =>
    ESenseSensor(
        deviceName: deviceName,
        timestamp: event.timestamp,
        packetIndex: event.packetIndex,
        gyro: event.gyro,
        accel: event.accel);