BooleanExtensions extension

on

Properties

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

Methods

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