isControlRequired

internal fun isControlRequired(control: Control<*>, controlContext: ControlContext): Boolean

Checks whether the control is required, based on its configuration and dependencies.

The control is required when:

  • It has required = true, or

  • A Required dependency is met

Return

true if the control is required

Parameters

control

the control to check