setFlagInResultCache method

Future<void> setFlagInResultCache(
  1. FeatureFlag flag,
  2. Duration ttl
)

Sets a flag in the result cache.

Implementation

Future<void> setFlagInResultCache(FeatureFlag flag, Duration ttl) async {
  await _module.channel.invokeMethod(
    "featureFlagManager#resultCacheSetFlag",
    {
      "flag": flag.toJSON(),
      "ttl": ttl.inMilliseconds,
    },
  );
}