getStormList method

Future<StormListRsp?> getStormList(
  1. String year,
  2. Basin basin
)
inherited

支持查询本年度和上一年度的台风,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);
}