BooleanAttributeHook
class BooleanAttributeHook<C : Tag<*>>(valueSetter: C.(Boolean, String) -> Unit, flowOfValueSetter: C.(Flow<Boolean>, String) -> Unit, trueValue: String = "") : Hook<C, Unit, Unit>
This Hook encapsulates the effect of setting a boolean attribute to a Tag
.
The boolean attribute itself has to be defined by the owner of the hook as constructor parameter, the specific value however can be provided by the user.
If the user does not provide any value, no attribute will be attached to the Tag
!