current abstract method
Get the current in amperes, and whether the current is AC (true) or DC (false).
var currentObject = await myPowerSensor.current();
double amps = currentObject.amperes;
bool isItAC = currentObject.isAc;
For more information, see Power Sensor component.
Implementation
Future<Current> current({Map<String, dynamic>? extra});