PIECE_TYPES top-level constant Null safety

Map<String, PieceType> const PIECE_TYPES

Implementation

const Map<String, PieceType> PIECE_TYPES = const {
  'p': PieceType.PAWN,
  'n': PieceType.KNIGHT,
  'b': PieceType.BISHOP,
  'r': PieceType.ROOK,
  'q': PieceType.QUEEN,
  'k': PieceType.KING
};