copyWith method
PlatformJumpAnimations
copyWith({
- FutureOr<
SpriteAnimation> ? jumpUpRight, - FutureOr<
SpriteAnimation> ? jumpUpLeft, - FutureOr<
SpriteAnimation> ? jumpDownRight, - FutureOr<
SpriteAnimation> ? jumpDownLeft,
Implementation
PlatformJumpAnimations copyWith({
FutureOr<SpriteAnimation>? jumpUpRight,
FutureOr<SpriteAnimation>? jumpUpLeft,
FutureOr<SpriteAnimation>? jumpDownRight,
FutureOr<SpriteAnimation>? jumpDownLeft,
}) {
return PlatformJumpAnimations(
jumpUpRight: jumpUpRight ?? this.jumpUpRight,
jumpUpLeft: jumpUpLeft ?? this.jumpUpLeft,
jumpDownRight: jumpDownRight ?? this.jumpDownRight,
jumpDownLeft: jumpDownLeft ?? this.jumpDownLeft,
);
}