REST 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
-
delete({dynamic onResponse(Response)?, VoidCallback? onTimeout, VoidCallback? onNoInternet, required String tag, required String url, dynamic body, Map<String, String>? params, Duration timeoutDuration = defaultTimeoutDuration})
→ Future<Response>
-
-
get({dynamic onResponse(Response)?, VoidCallback? onTimeout, VoidCallback? onNoInternet, required String tag, required String url, Map<String, String>? params, Duration timeoutDuration = defaultTimeoutDuration})
→ Future<Response>
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
patch({dynamic onResponse(Response)?, VoidCallback? onTimeout, VoidCallback? onNoInternet, required String tag, required String url, dynamic body, Map<String, String>? params, Duration timeoutDuration = defaultTimeoutDuration})
→ Future<Response>
-
-
post({dynamic onResponse(Response)?, VoidCallback? onTimeout, VoidCallback? onNoInternet, required String tag, required String url, Map<String, String>? params, dynamic body, Duration timeoutDuration = defaultTimeoutDuration})
→ Future<Response>
-
-
put({dynamic onResponse(Response)?, VoidCallback? onTimeout, VoidCallback? onNoInternet, required String tag, required String url, dynamic body, Map<String, String>? params, Duration timeoutDuration = defaultTimeoutDuration})
→ Future<Response>
-
-
restWithFile({dynamic onResponse(StreamedResponse)?, VoidCallback? onTimeout, VoidCallback? onNoInternet, required String tag, required HttpMethod apiMethod, required String url, Map<String, dynamic>? body, Map<String, String>? params, required String apiKeyForFiles, required List<AttachmentFile> files, Duration timeoutDuration = defaultTimeoutDuration})
→ Future<StreamedResponse>
-
-
toString()
→ String
-
A string representation of this object.
inherited