AttributeHook
class AttributeHook<C : Tag<*>, T>(valueSetter: C.(T) -> Unit, flowOfValueSetter: C.(Flow<T>) -> Unit) : Hook<C, Unit, Unit>
This Hook encapsulates the effect of setting an attribute to a Tag
.
The 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
!