or3 method
- 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;
}