InteractiveToggle

constructor(@NonNull title: String, def: Boolean, @NonNull executor: (Boolean) -> out Any)

Create a new InteractiveOption.

Parameters

title

the static name of this option

executor

a function that returns the display text for this option, with the supplied parameter being the current state; this parameter allows you to perform operations continuously while the option is active/inactive.

def

the default state of this option