BooleanOrNullExtensions extension
Extensions for nullable bool values.
- on
-
- bool?
Methods
-
isFalse(
) → bool -
Available on bool?, provided by the BooleanOrNullExtensions extension
Returnstruewhen the value isfalse. -
isNotFalse(
) → bool -
Available on bool?, provided by the BooleanOrNullExtensions extension
Returnstruewhen the value is notfalse. -
isNotTrue(
) → bool -
Available on bool?, provided by the BooleanOrNullExtensions extension
Returnstruewhen the value is nottrue. -
isTrue(
) → bool -
Available on bool?, provided by the BooleanOrNullExtensions extension
Returnstruewhen the value istrue. -
toggle(
) → bool -
Available on bool?, provided by the BooleanOrNullExtensions extension
Returns the opposite boolean value. -
toInt(
) → int -
Available on bool?, provided by the BooleanOrNullExtensions extension
Converts the boolean value to an integer. -
validate(
{bool value = false}) → bool -
Available on bool?, provided by the BooleanOrNullExtensions extension
Returns the current value if it is not null; otherwise returnsvalue.