getWeatherHourly method
Future<WeatherHourlyResp?>
getWeatherHourly(
- String location,
- WeatherHourlyForecast hourlyForecast
inherited
Implementation
Future<WeatherHourlyResp?> getWeatherHourly(
String location, WeatherHourlyForecast hourlyForecast) async {
Map<String, dynamic> param = {
"location": location,
"hourly": hourlyForecast.hour
};
Map? value = await _methodChannel.invokeMapMethod(
MethodConstants.GetWeatherHourly, param);
return value == null ? null : WeatherHourlyResp.fromMap(value);
}