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