FeatureClient class
Feature client - orchestrates evaluation without caching
- Available extensions
Constructors
- FeatureClient({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
-
getBooleanDetails(
String flagKey, {EvaluationContext? context, bool defaultValue = false}) → Future< FlagEvaluationDetails< bool> > -
Available on FeatureClient, provided by the ClientEvaluationDetails extension
Get boolean flag with full evaluation details -
getBooleanFlag(
String flagKey, {EvaluationContext? context, bool defaultValue = false}) → Future< bool> - Evaluate boolean flag
-
getDoubleDetails(
String flagKey, {EvaluationContext? context, double defaultValue = 0.0}) → Future< FlagEvaluationDetails< double> > -
Available on FeatureClient, provided by the ClientEvaluationDetails extension
Get double flag with full evaluation details -
getDoubleFlag(
String flagKey, {EvaluationContext? context, double defaultValue = 0.0}) → Future< double> - Evaluate double flag
-
getIntegerDetails(
String flagKey, {EvaluationContext? context, int defaultValue = 0}) → Future< FlagEvaluationDetails< int> > -
Available on FeatureClient, provided by the ClientEvaluationDetails extension
Get integer flag with full evaluation details -
getIntegerFlag(
String flagKey, {EvaluationContext? context, int defaultValue = 0}) → Future< int> - Evaluate integer flag
-
getMetrics(
) → ClientMetrics - Get client metrics
-
getObjectDetails(
String flagKey, {EvaluationContext? context, Map< String, dynamic> defaultValue = const {}}) → Future<FlagEvaluationDetails< Map< >String, dynamic> > -
Available on FeatureClient, provided by the ClientEvaluationDetails extension
Get object flag with full evaluation details -
getObjectFlag(
String flagKey, {EvaluationContext? context, Map< String, dynamic> defaultValue = const {}}) → Future<Map< String, dynamic> > - Evaluate object flag
-
getStringDetails(
String flagKey, {EvaluationContext? context, String defaultValue = ''}) → Future< FlagEvaluationDetails< String> > -
Available on FeatureClient, provided by the ClientEvaluationDetails extension
Get string flag with full evaluation details -
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