Weather class
Weather information.
Constructors
-
Weather({required DateTime publicTime, required String publishingOffice, required String link, required WeatherDescription description, required List<
WeatherForecast> forecasts, required WeatherLocation location}) -
const
- Weather.fromMap(dynamic map)
-
factory
Properties
- description → WeatherDescription
-
final
-
forecasts
→ List<
WeatherForecast> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- link → String
-
Link to the JMA (気象庁)'s weather information web page.
final
- location → WeatherLocation
-
final
- publicTime → DateTime
-
When the information is published.
final
- publishingOffice → String
-
Publishing office.
final
- 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.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromClass10Code(
String code) → Future< Weather?> - Obtain weather forecast data for the specified class 10 area code.
-
fromLocation(
{required double lng, required double lat, String? cacheDirectory}) → Future< Weather?> -
Obtain weather forecast data for the specified point by
lat
,lng
.