properties abstract method
Get the PowerSensorProperties of this PowerSensor, such as whether batteryPercent is supported.
var properties = await myPowerSensor.properties();
bool batterySupported = properties.isBatteryPercentSupported;
For more information, see Power Sensor component.
Implementation
Future<PowerSensorProperties> properties({Map<String, dynamic>? extra});