enable

suspend fun enable(featureId: String): FF4k(source)

Enables a feature flag.

If autoCreate is enabled and the feature doesn't exist, it will be created in an enabled state. Otherwise, throws FeatureNotFoundException.

Return

This FF4k instance for method chaining

Parameters

featureId

The unique identifier of the feature to enable

Throws

if the feature doesn't exist and autoCreate is false