addFeature
Adds a feature to the store.
If a feature with the same ID already exists, it will be replaced.
Return
This FF4k instance for method chaining
Parameters
feature
The Feature to add
suspend fun addFeature(featureId: String, isEnabled: Boolean = false, description: String? = null): FF4k(source)
Creates and adds a new feature to the store.
This is a convenience overload for creating simple features without strategies or group assignments.
Return
This FF4k instance for method chaining
Parameters
featureId
The unique identifier for the feature
isEnabled
Whether the feature should be enabled (defaults to false)
description
Optional description of the feature