onFalse<T> method

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