withRegionEffect method

PieceType withRegionEffect(
  1. RegionEffect effect
)

Returns a copy of the piece type with effect added.

Implementation

PieceType withRegionEffect(RegionEffect effect) =>
    copyWith(regionEffects: [...regionEffects, effect]);