getWeatherDaily method
Future<WeatherDailyResp?>
getWeatherDaily(
- String location,
- 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);
}