isAlreadyHavePiece method

bool isAlreadyHavePiece(
  1. int index
)

Implementation

bool isAlreadyHavePiece(int index) =>
    piecesCount.elementAtOrNull(index)?.isNegative ?? false;