getWeatherDaily method

Future<WeatherDailyResp?> getWeatherDaily(
  1. String location,
  2. WeatherDailyForecast dailyForecast
)
inherited

Implementation

Future<WeatherDailyResp?> getWeatherDaily(
    String location, WeatherDailyForecast dailyForecast) async {
  Map<String, dynamic> param = {
    "location": location,
    "daily": dailyForecast.day
  };
  Map? value = await _methodChannel.invokeMapMethod(
      MethodConstants.GetWeatherDaily, param);
  return value == null ? null : WeatherDailyResp.fromMap(value);
}