getWeatherHourly method

Future<WeatherHourlyResp?> getWeatherHourly(
  1. String location,
  2. 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);
}