inStalemate property Null safety

bool inStalemate

Implementation

bool get inStalemate {
  return !inCheck && generateMoves().length == 0;
}