isFeatureOn static method

Future<bool> isFeatureOn(
  1. int featureKey, {
  2. @Deprecated("Use setUser(user) instead.") HackleUser? user,
})

Checks whether a feature flag is enabled.

featureKey - The key of the feature flag. user - The specified user (Deprecated).

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

Implementation

static Future<bool> isFeatureOn(
  int featureKey, {
  @Deprecated("Use setUser(user) instead.") HackleUser? user,
}) {
  return HacklePlatform.instance.isFeatureOn(featureKey, user: user);
}