inCheckmate property Null safety

bool inCheckmate

Implementation

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