FeatEvaluator class abstract

The minimal slice of FeatClient that FeatProvider depends on.

Introducing this seam keeps the provider testable: unit tests supply a fake implementation instead of standing up a real HTTP-backed client, and production code uses FeatClientEvaluator to adapt a live FeatClient.

Implementers

Constructors

FeatEvaluator()

Properties

currentContext → EvalContext?
The context currently being evaluated, if any.
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

close() Future<void>
Tear down the underlying client.
getDetail(String key, {Object? defaultValue}) → EvaluatedFlag
Resolve the full evaluation detail for key.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setContext(EvalContext context) Future<void>
Swap the evaluation context the underlying client evaluates against.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited