operator | method Null safety

bool? operator |(
  1. bool other
)

Implementation

bool? operator |(bool other) {
  if (value != null) {
    return other || value!;
  }
}