public static Setting of(String description, BooleanProperty property) {
    return new Setting<>(
        description,
        Field.ofBooleanType(property)
            .label(description)
            .render(new ToggleControl()),
        property
    );
  }
public static Setting of ( String description , BooleanProperty property ) { return new Setting < > ( description , Field . ofBooleanType ( property ) . label ( description ) . render ( new ToggleControl ( ) ) , property ) ; }
Constructs a setting of {@link Boolean} type, which is represented by a {@link ToggleControl}.

@param description the title of this setting
@param property    to be bound, saved / loaded and used for undo / redo
@return the constructed setting