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
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?> -
handleResponse(
Response response) → Future -
post(
String url, {dynamic body, Map< String, String> ? headers, bool debug = false}) → Future -
uploadFile(
String url, {Map< String, String> ? headers, String imagePath = '', String fieldName = ''}) → Future<String>