ConfigMerger class

Static helpers for merging connector-level defaults with request-level overrides.

Every merge follows the same rule: the Request value takes priority over the Connector value. ConfigMerger is used internally by Connector.send and is not normally called directly by application code.

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

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

Static Methods

mergeHeaders(Map<String, String>? connector, Map<String, String>? request) Map<String, String>
Merges connector headers with request headers, request taking priority.
mergeOptions(Options? connector, Options? request, String method, Map<String, String>? mergedHeaders) → Options
Merges connector and request Dio Options into a single Options object ready to pass to Dio.
mergeQuery(Map<String, dynamic>? connector, Map<String, dynamic>? request) Map<String, dynamic>?
Merges connector query parameters with request query parameters, request taking priority.
resolveUseAuth(bool connectorUseAuth, bool? requestUseAuth) bool
Resolves the effective authentication flag by merging connector and request settings.