canBePromoted property

bool get canBePromoted

Whether the piece type can be promoted

Implementation

bool get canBePromoted => _piecesWhichCanBePromoted.contains(this);