onFalseOrNull<T> method

T? onFalseOrNull<T>(
  1. T callback, [
  2. 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;
  }
}