copyWith method

PlatformJumpAnimations copyWith({
  1. FutureOr<SpriteAnimation>? jumpUpRight,
  2. FutureOr<SpriteAnimation>? jumpUpLeft,
  3. FutureOr<SpriteAnimation>? jumpDownRight,
  4. 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,
  );
}