MapKeyResolver class
In-memory resolver — for tests, or for apps that already hold keys in a runtime-built map.
- Inheritance
-
- Object
- KeyResolver
- MapKeyResolver
Constructors
-
MapKeyResolver(Map<
String, String> keys)
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
require(
String brokerId) → Future< String> -
Same as resolve but throws MissingKeyException when the key is
missing or empty. Useful at the call site of
broker.complete(...)where empty-string would just yield an opaque HTTP 401.inherited -
resolve(
String brokerId) → Future< String?> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited