getFlagFromResultCache method

Future<FeatureFlag?> getFlagFromResultCache(
  1. String flagName
)

Gets a flag from the result cache.

Implementation

Future<FeatureFlag?> getFlagFromResultCache(String flagName) async {
  var featureFlag = await _module.channel.invokeMethod(
    "featureFlagManager#resultCacheGetFlag",
    flagName,
  );
  return featureFlag != null ? FeatureFlag._fromJson(featureFlag) : null;
}