WeatherHttp class Null safety

Inheritance

Constructors

WeatherHttp(BuildContext context)

Properties

context BuildContext
finalinherited
hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

delete(String url, {Map<String, String>? params, dynamic body, dynamic headers, bool pure = true, bool showDebug = false}) Future
if pure == true, it will return data without parse it to ApiResponse
inherited
get(String url, {Map<String, String>? params, dynamic headers, bool pure = true, bool showDebug = false}) Future
if pure == true, it will return data without parse it to ApiResponse
inherited
getWeather({String units = "metric", required double lat, required double lon, String lang = "en"}) Future<OpenWeather?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
post(String url, {Map<String, String>? params, dynamic body, dynamic headers, bool pure = true, bool showDebug = false}) Future
if pure == true, it will return data without parse it to ApiResponse
inherited
put(String url, {Map<String, String>? params, dynamic body, dynamic headers, bool pure = true, bool showDebug = false}) Future
if pure == true, it will return data without parse it to ApiResponse
inherited
toString() String
A string representation of this object.
inherited

Operators

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