Api 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
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
get(String url, {bool debug = false, bool sendLastModified = false})
→ Future
-
-
-
getJwt()
→ Future<String?>
-
-
getStream(String url, {bool debug = false, bool sendLastModified = false})
→ Stream<String>
-
-
handleResponse(Response response)
→ Future
-
-
post(String url, {dynamic body, bool debug = false})
→ Future
-
-
postStream(String url, {dynamic body, bool debug = false})
→ Stream<String>
-
-
setJwt(String token)
→ Future<bool>
-
-
uploadFile(String url, {String imagePath = '', String fieldName = ''})
→ Future<String>
-