LogApiInterceptor class
An interceptor for logging API requests and responses
This interceptor logs API requests and responses when API logging is enabled. It captures request details, response data, and handles mock API functionality.
Constructors
- LogApiInterceptor()
- Creates a new LogApiInterceptor 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
-
convertFormDataToString(
FormData? formData) → String - Converts FormData to a string representation
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onError(
DioException err, ErrorInterceptorHandler handler) → void - Handles API error interception
-
onRequest(
RequestOptions options, RequestInterceptorHandler handler) → void - Handles API request interception
-
onResponse(
Response response, ResponseInterceptorHandler handler) → void - Handles API response interception
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getRequestId(
) → int - Gets the next request ID