CallbackProvider class

Constructors

CallbackProvider(List<EndpointConfig> endpoints, List<MockzillaLogger> loggers)

Properties

endpoints → List<EndpointConfig>
final
hashCode → int
The hash code for this object.
no setterinherited
loggers → List<MockzillaLogger>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

defaultHandler(BridgeMockzillaHttpRequest request, String key) → Future<BridgeMockzillaHttpResponse>
Returns the default response for the endpoint associated with key.
endpointMatcher(BridgeMockzillaHttpRequest request, String key) → Future<bool>
Calls the matcher on the specified endpoint.
errorHandler(BridgeMockzillaHttpRequest request, String key) → Future<BridgeMockzillaHttpResponse>
Returns the default error response for the endpoint associated with key.
log(BridgeLogLevel logLevel, String message, String tag, String? exception) → void
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