withValue method

PieceType withValue(
  1. int value
)

Returns a copy of the piece type with value.

Implementation

PieceType withValue(int value) => copyWith(value: value);