WeatherService class

天气服务

Constructors

WeatherService()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

generateWeatherOutfitPrompt({String city = '北京'}) Future<String>
生成天气搭配提示词
getCurrentWeather({String city = '北京'}) Future<WeatherInfo?>
获取当前天气
getForecast({String city = '北京', int days = 3}) Future<List<WeatherInfo>>
获取未来3天天气预报
getTomorrowWeather({String city = '北京'}) Future<WeatherInfo?>
获取明天天气