and method

bool? and(
  1. bool? other
)

Performs a logical and operation between this Boolean and the other one. Unlike the && operator, this function does not perform short-circuit evaluation. Both this and other will always be evaluated.

Implementation

bool? and(bool? other) {
  if (this == null || other == null) return null;
  return this! && other;
}