getOceanTide method

Future<DailyIndicesResp?> getOceanTide(
  1. String location,
  2. String date
)
inherited

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

Implementation

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