DfApiClient class

An instance of this class is used to make all API calls with predefined logic

Constructors

DfApiClient({required DfHttpClientConfig httpApiConfig})

Properties

hashCode int
The hash code for this object.
no setterinherited
httpApiConfig DfHttpClientConfig
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({DfHttpClientConfig? httpApiConfig}) DfApiClient
delete(String apiPath, {Object? body, bool jsonEncodeBody = true}) Future<Response?>
get(String apiPath) Future<Response?>
hasInternetConnection() Future<bool>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
patch(String apiPath, {Object? body, bool jsonEncodeBody = true}) Future<Response?>
post(String apiPath, {Object? body, bool jsonEncodeBody = true}) Future<Response?>
put(String apiPath, {Object? body, bool jsonEncodeBody = true}) Future<Response?>
toString() String
A string representation of this object.
inherited

Operators

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