getFlagFromResultCache method
- String flagName
Gets a flag from the result cache. Returns null if the flag is not cached or the cached value has expired.
Implementation
Future<FeatureFlag?> getFlagFromResultCache(String flagName) async {
var featureFlag = await _module.channel.invokeMethod(
"featureFlagManager#resultCacheGetFlag",
flagName,
);
return featureFlag != null ? FeatureFlag._fromJson(featureFlag) : null;
}