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