ApiService class

Implemented types

Constructors

ApiService()

Properties

baseHeader Map<String, String>
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

httpDeleteDynamic(String url, {Map<String, String>? header, Map<String, dynamic>? body}) Future<ProcessResult>
call backend and return ProcessResult with Map
override
httpDeleteDynamicEx(String url, {Map<String, String>? header}) Future<ProcessResult>
call backend and return ProcessResult with Map
override
httpGet(String url, {Map<String, String>? header}) Future<ProcessResult<Map>>
call backend and return ProcessResult with Map
override
httpGetDynamic(String url, {Map<String, String>? header}) Future<ProcessResult>
call backend and return ProcessResult with Map
override
httpGetString(String url, {Map<String, String>? header}) Future<ProcessResult<String>>
override
httpPatch(String url, Map data, {Map<String, String>? header}) Future<ProcessResult>
override
httpPatchEx(String url, dynamic data, {Map<String, String>? header}) Future<ProcessResult>
override
httpPost(String url, dynamic data, [Map<String, String>? header, bool asString = false]) Future<ProcessResult>
call backend and return ProcessResult with Map
override
httpPostEx(String url, dynamic data, [Map<String, String>? header, bool addToken = true]) Future<ProcessResult>
call backend and return ProcessResult with Map
override
httpPostFile(String url, Uint8List fileData, String name, [Map<String, String>? requestFields, Map<String, String>? header, bool isImage = true]) Future<ProcessResult<String>>
call backend and post file like images
override
httpPut(String url, Map data, {Map<String, String>? header}) Future<ProcessResult>
call backend and return ProcessResult with Map
override
httpPutEx(String url, dynamic data, {Map<String, String>? header}) Future<ProcessResult>
call backend and return ProcessResult with Map
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parseResponse(Map r) ProcessResult
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

apiURL String?
no setter
token String
backend token
no setter

Static Methods

customEncode(dynamic item) → dynamic
custom Encodeer for DateTime issue