DioHttpClient class

Default HttpClient implementation backed by package:dio.

Implemented types

Constructors

DioHttpClient.new({required String baseUrl, Duration connectTimeout = const Duration(seconds: 20), Duration receiveTimeout = const Duration(seconds: 30)})
Creates a Dio-backed client for Sdk.

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send(HttpRequest request) Future<HttpResponse>
Sends request through Dio and returns a flattened HttpResponse.
override
toString() String
A string representation of this object.
inherited

Operators

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