FixturesInterceptor class

Dio interceptor that provides mock responses using fixtures

This interceptor intercepts Dio HTTP requests and returns mock responses based on fixture data.

Constructors

FixturesInterceptor.new({required DataQuery<RequestOptions, Map<String, dynamic>> dataQuery, DataSelectorView? dataSelectorView, required DataSelectorType dataSelector, DataSelectorDelay dataSelectorDelay = DataSelectorDelay.instant})
Creates a new FixturesInterceptor with the specified components

Properties

dataQuery DataQuery<RequestOptions, Map<String, dynamic>>
The data query used to find fixture data
final
dataSelector DataSelectorType
The strategy for selecting fixtures
final
dataSelectorDelay DataSelectorDelay
The delay to apply when selecting fixtures
final
dataSelectorView DataSelectorView?
The view used for user selection of fixtures
final
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
onError(DioException err, ErrorInterceptorHandler handler) → void
Called when an exception was occurred during the request.
inherited
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.
inherited
toString() String
A string representation of this object.
inherited

Operators

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