readings abstract method

Future<Map<String, dynamic>> readings({
  1. Map<String, dynamic>? extra,
})

Get the measurements or readings from this PowerSensor. If a sensor is not configured correctly or fails to read a piece of data, it will not appear in the readings dictionary.

var readings = await myPowerSensor.readings();

For more information, see Power Sensor component.

Implementation

Future<Map<String, dynamic>> readings({Map<String, dynamic>? extra});