MapKeyResolver class

In-memory resolver — for tests, or for apps that already hold keys in a runtime-built map.

Inheritance

Constructors

MapKeyResolver(Map<String, String> keys)

Properties

hashCode int
The hash code for this object.
no setterinherited
keys Map<String, String>
final
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
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