DioClient class

Implemented types

Constructors

DioClient({BaseOptions? baseOptions})

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

get<T>(String path, {Object? body, Map<String, dynamic>? queryParameters, Options? options}) Future<T>
Performs a GET request to the provided API URL and returns the response.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
post<T>(String path, {Object? body, Map<String, dynamic>? queryParameters, Options? options}) Future<T>
Performs a POST request to the provided API URL with the given body and returns the response.
override
toString() String
A string representation of this object.
inherited

Operators

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