feature
Creates a single Feature using the FF4K Kotlin DSL.
This is a top-level helper function to define a feature in a concise DSL block. You can configure its properties, permissions, and custom properties inside the block.
Example
val darkModeFeature = feature("dark-mode") {
isEnabled = true
description = "Enable dark mode UI"
group = "ui"
permission("ROLE_ADMIN")
property("max-retries") {
value = 3
}
}Content copied to clipboard
Return
A fully built Feature instance
Parameters
uid
Unique identifier for the feature
block
DSL block to configure the FeatureBuilder
Throws
if any property inside the block is invalid