FeaturesBuilder
DSL builder for defining multiple Feature instances in a nested block.
Use this builder inside a ff4k or other DSL block to group feature definitions. You can add:
pre-built Feature objects,
collections of features, or
inline features using the DSL.
Example
val featureList = FeaturesBuilder().apply {
feature("dark-mode") {
isEnabled = true
}
feature(Feature("beta-feature", isEnabled = false))
features(listOf(
Feature("feature-1"),
Feature("feature-2")
))
}.build()Content copied to clipboard