NetworkConfigurationMixin mixin
Mixin providing runtime reconfiguration for network interceptors.
Interceptors that support runtime settings changes (e.g. Dio, HTTP) should override configurableSettings and applyConfigurableSettings. Read-only interceptors (e.g. WebSocket) can omit this mixin entirely.
Properties
- configurableSettings → BaseNetworkInterceptorSettings?
-
The current settings exposed for runtime reconfiguration.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
applyConfigurableSettings(
BaseNetworkInterceptorSettings updated) → void -
Applies
updatedsettings. Override alongside configurableSettings. -
configure(
{bool? printResponseData, bool? printResponseHeaders, bool? printResponseMessage, bool? printErrorData, bool? printErrorHeaders, bool? printErrorMessage, bool? printRequestData, bool? printRequestHeaders, bool? enableRedaction, AnsiPen? requestPen, AnsiPen? responsePen, AnsiPen? errorPen}) → void - Reconfigures logging options at runtime without replacing the interceptor.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited