copyWith method
PlatformAnimations
copyWith({
- FutureOr<
SpriteAnimation> ? idleRight, - FutureOr<
SpriteAnimation> ? runRight, - FutureOr<
SpriteAnimation> ? idleLeft, - FutureOr<
SpriteAnimation> ? runLeft, - PlatformJumpAnimations? jump,
- Map<
String, FutureOr< ? others,SpriteAnimation> > - Vector2? centerAnchor,
Implementation
PlatformAnimations copyWith({
FutureOr<SpriteAnimation>? idleRight,
FutureOr<SpriteAnimation>? runRight,
FutureOr<SpriteAnimation>? idleLeft,
FutureOr<SpriteAnimation>? runLeft,
PlatformJumpAnimations? jump,
Map<String, FutureOr<SpriteAnimation>>? others,
Vector2? centerAnchor,
}) {
return PlatformAnimations(
idleRight: idleRight ?? this.idleRight,
runRight: runRight ?? this.runRight,
idleLeft: idleLeft ?? this.idleLeft,
runLeft: runLeft ?? this.runLeft,
jump: jump ?? this.jump,
others: others ?? this.others,
centerAnchor: centerAnchor ?? this.centerAnchor,
);
}