sensors_plus library Null safety

Classes

AccelerometerEvent
Discrete reading from an accelerometer. Accelerometers measure the velocity of the device. Note that these readings include the effects of gravity. Put simply, you can use accelerometer readings to tell if the device is moving in a particular direction.
GyroscopeEvent
Discrete reading from a gyroscope. Gyroscopes measure the rate or rotation of the device in 3D space.
MagnetometerEvent
A sensor sample from a magnetometer. [...]
Sensors
The Sensors implementation.
SensorsPlatform
The common platform interface for sensors.
UserAccelerometerEvent
Like AccelerometerEvent, this is a discrete reading from an accelerometer and measures the velocity of the device. However, unlike AccelerometerEvent, this event does not include the effects of gravity.

Properties

accelerometerEvents Stream<AccelerometerEvent>
A broadcast stream of events from the device accelerometer.
read-only
gyroscopeEvents Stream<GyroscopeEvent>
A broadcast stream of events from the device gyroscope.
read-only
magnetometerEvents Stream<MagnetometerEvent>
A broadcast stream of events from the device magnetometer.
read-only
userAccelerometerEvents Stream<UserAccelerometerEvent>
Events from the device accelerometer with gravity removed.
read-only