color property
BoardColor
get
color
Implementation
BoardColor get color {
return (xAxis + yAxis) % 2 == 0 ? BoardColor.WHITE : BoardColor.BLACK;
}
BoardColor get color {
return (xAxis + yAxis) % 2 == 0 ? BoardColor.WHITE : BoardColor.BLACK;
}