or3 method

bool? or3(
  1. bool? other()
)

OR that evaluates other only if this is not true.

Implementation

bool? or3(bool? Function() other) {
  if (this ?? false) {
    return true;
  }
  final otherValue = other();
  if (otherValue ?? false) {
    return true;
  }
  return this == null || otherValue == null ? null : false;
}