onFalse<T> method
T?
onFalse<T>(
- T callback, [
- T? otherCallBack
When false this will return call back When true or null this will return other
Implementation
T? onFalse<T>(T callback, [T? otherCallBack]) {
if (this == false) {
return callback;
} else {
return otherCallBack;
}
}