BoolExtensions extension

on

Properties

toEnabledDisabled String

Available on bool, provided by the BoolExtensions extension

Returns 'enabled' if this boolean is true, and 'disabled' if this boolean is false.
no setter
toggle bool

Available on bool, provided by the BoolExtensions extension

Returns false if this boolean is true, and true if this boolean is false.
no setter
toInt int

Available on bool, provided by the BoolExtensions extension

Returns 1 if this boolean is true, and 0 if this boolean is false.
no setter
toOnOff String

Available on bool, provided by the BoolExtensions extension

Returns 'on' if this boolean is true, and 'off' if this boolean is false.
no setter
toYesNo String

Available on bool, provided by the BoolExtensions extension

Returns 'yes' if this boolean is true, and 'no' if this boolean is false.
no setter

Methods

whenFalse(void action()) → void

Available on bool, provided by the BoolExtensions extension

Executes action if this boolean is false.
whenTrue(void action()) → void

Available on bool, provided by the BoolExtensions extension

Executes action if this boolean is true.