nor static method Null safety

bool nor(
  1. bool a,
  2. bool b
)

Implementation

static bool nor(bool a, bool b) {
  if (!a && !b) {
    return true;
  }
  return false;
}