withRegionEffect method
Returns a copy of the piece type with effect
added.
Implementation
PieceType withRegionEffect(RegionEffect effect) =>
copyWith(regionEffects: [...regionEffects, effect]);
Returns a copy of the piece type with effect
added.
PieceType withRegionEffect(RegionEffect effect) =>
copyWith(regionEffects: [...regionEffects, effect]);