FeatureClient class
Feature client - orchestrates evaluation without caching
Constructors
- FeatureClient.new({required ClientMetadata metadata, required HookManager hookManager, required EvaluationContext defaultContext, FeatureProvider? provider, TransactionContextManager? transactionManager})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- metadata → ClientMetadata
-
final
- provider → FeatureProvider
-
Access to provider for management operations
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getBooleanFlag(
String flagKey, {EvaluationContext? context, bool defaultValue = false}) → Future< bool> - Evaluate boolean flag
-
getDoubleFlag(
String flagKey, {EvaluationContext? context, double defaultValue = 0.0}) → Future< double> - Evaluate double flag
-
getIntegerFlag(
String flagKey, {EvaluationContext? context, int defaultValue = 0}) → Future< int> - Evaluate integer flag
-
getMetrics(
) → ClientMetrics - Get client metrics
-
getObjectFlag(
String flagKey, {EvaluationContext? context, Map< String, dynamic> defaultValue = const {}}) → Future<Map< String, dynamic> > - Evaluate object flag
-
getStringFlag(
String flagKey, {EvaluationContext? context, String defaultValue = ''}) → Future< String> - Evaluate string flag
-
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