isFeatureOn static method

Future<bool> isFeatureOn(
  1. int featureKey
)

Checks whether a feature flag is enabled.

featureKey - The key of the feature flag.

Returns: Future<bool>, true if the feature flag is on.

Implementation

static Future<bool> isFeatureOn(int featureKey) {
  return HacklePlatform.instance.isFeatureOn(featureKey);
}