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 its value and its attributes. Example: "datadome=xxxx; Max-Age=31536000; Domain=.yourdomain.com; Path=/; Secure; SameSite=Lax"
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onError(DioError err, ErrorInterceptorHandler handler) → void
The callback will be executed on error.
onRequest(RequestOptions options, RequestInterceptorHandler handler) → void
The callback will be executed before the request is initiated.
onResponse(Response response, ResponseInterceptorHandler handler) → void
The callback will be executed on success. If you want to continue the response, call handler.next.
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