HttpService class
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
-
delete({String? baseUrl, String? authorization, required String path, String? id, bool skipJsonDecode = false})
→ Future
-
-
get({String? baseUrl, String? authorization, required String path, bool skipJsonDecode = false, })
→ Future
-
make skipJsonDecode = true if expected result is not in json format
-
getBytes({String? baseUrl, String? authorization, required String path, bool skipJsonDecode = false})
→ Future
-
-
-
isFailure(int statusCode)
→ bool
-
-
log(Object? data)
→ dynamic
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
patch({String? baseUrl, String? authorization, required String path, dynamic data, bool skipJsonDecode = false, })
→ Future
-
-
post({String? baseUrl, String? authorization, required String path, required dynamic data, bool skipJsonDecode = false, })
→ Future
-
-
put({String? baseUrl, String? authorization, required String path, dynamic data, bool skipJsonDecode = false})
→ Future
-
-
toString()
→ String
-
A string representation of this object.
inherited