getHistoricalAir method
date: 查询日期,日期格式为yyyyMMdd,例如 20200531
Implementation
Future<HistoricalHourlyAirRsp?> getHistoricalAir(
String location, String date) async {
Map param = {"location": location, "date": date};
Map? value = await _methodChannel.invokeMapMethod(
MethodConstants.GetHistoricalAir, param);
return value == null ? null : HistoricalHourlyAirRsp.fromMap(value);
}