getHistoricalWeather method

Future<HistoricalWeatherRsp?> getHistoricalWeather(
  1. String location,
  2. String date
)
inherited

date: 查询日期,日期格式为yyyyMMdd,例如 20200531

Implementation

Future<HistoricalWeatherRsp?> getHistoricalWeather(
    String location, String date) async {
  Map param = {"location": location, "date": date};
  Map? value = await _methodChannel.invokeMapMethod(
      MethodConstants.GetHistoricalWeather, param);
  return value == null ? null : HistoricalWeatherRsp.fromMap(value);
}