BooleanExtensions extension

Extensions for non-nullable bool values.

on

Methods

isFalse() → bool

Available on bool, provided by the BooleanExtensions extension

Returns whether this value is false.
isNotFalse() → bool

Available on bool, provided by the BooleanExtensions extension

Returns whether this value is not false.
isNotTrue() → bool

Available on bool, provided by the BooleanExtensions extension

Returns whether this value is not true.
isTrue() → bool

Available on bool, provided by the BooleanExtensions extension

Returns whether this value is true.
toggle() → bool

Available on bool, provided by the BooleanExtensions extension

Returns the opposite boolean value.
toInt() → int

Available on bool, provided by the BooleanExtensions extension

Converts the boolean value to an integer.