JsonFeatureProvider class
The feature provider with evaluates the provided JSON.
- Implemented types
Constructors
- JsonFeatureProvider({EvaluationEngine engine = const JsonEvaluationEngine()})
- Default constructor.
Properties
Methods
-
feed(
Map< String, dynamic> rawFlags) → void - Sets the raw flags to be used by the provider.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolveBooleanValue(
{required String flagKey, required bool defaultValue, required EvaluationContext context, required FlagEvaluationOptions options}) → Future< ResolutionDetails< bool> > -
override
-
resolveNumberValue(
{required String flagKey, required num defaultValue, required EvaluationContext context, required FlagEvaluationOptions options}) → Future< ResolutionDetails< num> > -
override
-
resolveStringValue(
{required String flagKey, required String defaultValue, required EvaluationContext context, required FlagEvaluationOptions options}) → Future< ResolutionDetails< String> > -
override
-
resolveValue<
T extends Object> ({required String flagKey, required T defaultValue, required EvaluationContext context, required FlagEvaluationOptions options}) → Future< ResolutionDetails< T> > -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited