collect method
Implementation
@override
Future<num> collect() async {
ensureOsSupported();
final info = await BatteryInfoPlugin().androidBatteryInfo;
final batteryLevel = info?.batteryLevel ?? kUnknownBatteryLevel;
_data[DateTime.now().toUtc()] = batteryLevel;
return batteryLevel;
}