getStormList method
支持查询本年度和上一年度的台风,year 例如:2020 2019
Implementation
Future<StormListRsp?> getStormList(String year, Basin basin) async {
Map param = {"year": year, "basin": basin.code};
Map? value = await _methodChannel.invokeMapMethod(
MethodConstants.GetStormList, param);
return value == null ? null : StormListRsp.fromMap(value);
}