readings abstract method
Obtain the measurements/data specific to this MovementSensor If a sensor is not configured to have a measurement or fails to read a piece of data, it will not appear in the readings dictionary.
var readings = await myMovementSensor.readings();
For more information, see Movement Sensor component.
Implementation
Future<Map<String, dynamic>> readings({Map<String, dynamic>? extra});