RegionEffect.changePiece constructor

RegionEffect.changePiece({
  1. String? whiteRegion,
  2. String? blackRegion,
  3. required PieceType pieceType,
})

An effect that causes the piece to change to a different type when within the region.

Implementation

factory RegionEffect.changePiece({
  String? whiteRegion,
  String? blackRegion,
  required PieceType pieceType,
}) =>
    RegionEffect(
      whiteRegion: whiteRegion,
      blackRegion: blackRegion,
      pieceType: pieceType,
    );