DataDomeInterceptor class

Constructors

DataDomeInterceptor(String dataDomeKey, Dio dio, BuildContext context)
DataDomeInterceptor.withCallback(String dataDomeKey, Dio dio, OnCaptchaDisplay onCaptchaDisplay, OnCaptchaDismiss onCaptchaDismiss)

Properties

context BuildContext?
getter/setter pair
dataDomeKey String?
getter/setter pair
dialogContext BuildContext
getter/setter pair
dio ↔ Dio?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
onCaptchaDismiss OnCaptchaDismiss?
getter/setter pair
onCaptchaDisplay OnCaptchaDisplay?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

didResolveCaptcha(String cookie) → void
dismissCaptcha() → void
fillPayload(String cookie, RequestOptions options) Future<void>
getDataDomeCookie() Future<String>
Returns the DataDome cookie. The returned value should be a string representing the cookie with the datadome name and its value. Example: "datadome=xxxx"
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onError(DioError err, ErrorInterceptorHandler handler) → void
Called when an exception was occurred during the request.
onRequest(RequestOptions options, RequestInterceptorHandler handler) → void
Called when the request is about to be sent.
onResponse(Response response, ResponseInterceptorHandler handler) → void
Called when the response is about to be resolved.
retry(RetriableRequest retriable) Future<Null>
retryFailedRequests() → void
setDataDomeCookie(String newValue) → void
Saves a DataDome cookie. The new value should be a string representing the cookie with its value and its attributes. Example: "datadome=xxxx; Max-Age=31536000; Domain=.yourdomain.com; Path=/; Secure; SameSite=Lax"
showCaptcha(BuildContext context, String? captchaUrl, ValueChanged<String> onCaptchaResolved) → void
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

deviceInfos Map<String, dynamic>
getter/setter pair
failedRequests List<RetriableRequest>
getter/setter pair
payloadInitializer Map<String, dynamic>
getter/setter pair