Api class

Constructors

Api()

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 Properties

buildNumber ↔ String
getter/setter pair
jwt ↔ String
getter/setter pair
platform ↔ String
getter/setter pair
version ↔ String
getter/setter pair

Static Methods

get(String url, {Map<String, String>? headers, bool debug = false, bool sendLastModified = false}) → Future
getHeaders({Map<String, String>? customHeaders}) → Future<Map<String, String>>
getJwt() → Future<String?>
getStream(String url, {Map<String, String>? headers, bool debug = false, bool sendLastModified = false}) → Stream<String>
handleResponse(Response response) → Future
post(String url, {dynamic body, Map<String, String>? headers, bool debug = false}) → Future
postStream(String url, {dynamic body, Map<String, String>? headers, bool debug = false}) → Stream<String>
setJwt(String token) → Future<bool>
uploadFile(String url, {Map<String, String>? headers, String imagePath = '', String fieldName = ''}) → Future<String>