CoderClient class

Main class to make HTTP requests using Dio.

Constructors

CoderClient({required String baseUrl, Map<String, dynamic>? headers, Duration timeout = const Duration(seconds: 10)})
Constructor for initializing the Dio instance.

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

get<T>(String path, {Map<String, dynamic>? query, T parser(dynamic data)?}) → Future<CoderResult<T>>
Performs GET request and parses the response using optional parser.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
post<T>(String path, {dynamic data, T parser(dynamic data)?}) → Future<CoderResult<T>>
Performs POST request and parses the response using optional parser.
toString() → String
A string representation of this object.
inherited

Operators

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