isToggle

Check if BooleanProperty is a toggle based on the format.

val booleanProperty = BooleanProperty()
val control = Control(
scope = "#/properties/boolean",
options = Options(format = Format.Toggle)
)
val isToggle = booleanProperty.isToggle(control)

Return

true if the BooleanProperty is a toggle

Parameters