flag method
- String name, {
- bool useResultCache = false,
Gets and evaluates a feature flag with the given name
.
useResultCache
determines if the cached result should be used.
Implementation
Future<FeatureFlag> flag(String name, {bool useResultCache = false}) async {
var featureFlag = await _module.channel.invokeMethod(
"featureFlagManager#flag",
{
"flagName": name,
"useResultCache": useResultCache,
},
);
return FeatureFlag._fromJson(featureFlag);
}