BooleanExtensions extension

on

Properties

toInt int

Available on bool?, provided by the BooleanExtensions extension

convert bool to int with value 0 or 1 based on boolean value
no setter

Methods

onFalse<T>(T callback, [T? otherCallBack]) → T?

Available on bool?, provided by the BooleanExtensions extension

When false this will return call back When true or null this will return other
onFalseOrNull<T>(T callback, [T? otherCallBack]) → T?

Available on bool?, provided by the BooleanExtensions extension

When false or null this will return call back When true this will return other
onTrue<T>(T callback, [T? otherCallBack]) → T?

Available on bool?, provided by the BooleanExtensions extension

When true this will return call back When false or null this will return other
onTrueOrNull<T>(T callback, [T? otherCallBack]) → T?

Available on bool?, provided by the BooleanExtensions extension

When true or null this will return call back When false this will return other