copyWith method
StandardMoveDefinition
copyWith(
{ - Direction? direction,
- int? range,
- Modality? modality,
- bool? enPassant,
- bool? firstOnly,
- bool? lame,
- int? hopDistance,
- int? normalised,
- Direction? lameDirection,
- int? lameNormalised,
})
Implementation
StandardMoveDefinition copyWith({
Direction? direction,
int? range,
Modality? modality,
bool? enPassant,
bool? firstOnly,
bool? lame,
int? hopDistance,
int? normalised,
Direction? lameDirection,
int? lameNormalised,
}) =>
StandardMoveDefinition(
direction: direction ?? this.direction,
range: range ?? this.range,
modality: modality ?? this.modality,
enPassant: enPassant ?? this.enPassant,
firstOnly: firstOnly ?? this.firstOnly,
lame: lame ?? this.lame,
hopDistance: hopDistance ?? this.hopDistance,
normalised: normalised ?? this.normalised,
lameDirection: lameDirection ?? this.lameDirection,
lameNormalised: lameNormalised ?? this.lameNormalised,
);