ApiService class
Properties
-
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, dynamic>? body})
→ Future<ProcessResult>
-
call backend and return ProcessResult with Map
override
-
httpDeleteDynamicEx(String url, {})
→ Future<ProcessResult>
-
call backend and return ProcessResult with Map
override
-
httpGet(String url, {})
→ Future<ProcessResult<Map>>
-
call backend and return ProcessResult with Map
override
-
httpGetDynamic(String url, {})
→ Future<ProcessResult>
-
call backend and return ProcessResult with Map
override
-
httpGetString(String url, {})
→ Future<ProcessResult<String>>
-
override
-
httpPatch(String url, Map data, {})
→ Future<ProcessResult>
-
override
-
httpPatchEx(String url, dynamic data, {})
→ Future<ProcessResult>
-
override
-
httpPost(String url, dynamic data, [bool asString = false])
→ Future<ProcessResult>
-
call backend and return ProcessResult with Map
override
-
httpPostEx(String url, dynamic data, [bool addToken = true])
→ Future<ProcessResult>
-
call backend and return ProcessResult with Map
override
-
httpPostFile(String url, Uint8List fileData, String name, [Map<String, String>? requestFields, bool isImage = true])
→ Future<ProcessResult<String>>
-
call backend and post file like images
override
-
httpPut(String url, Map data, {})
→ Future<ProcessResult>
-
call backend and return ProcessResult with Map
override
-
httpPutEx(String url, dynamic data, {})
→ 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
Static Methods
-
customEncode(dynamic item)
→ dynamic
-
custom Encodeer for DateTime issue