whenTrue
Conditionally applies a consumer lambda to this component builder if the condition is true.
Return
this component builder for chaining
Parameters
condition
the boolean condition to evaluate
consumer
the consumer lambda that operates on a component builder, executed only if condition is true