PlatformAnimations constructor

PlatformAnimations({
  1. required FutureOr<SpriteAnimation> idleRight,
  2. required FutureOr<SpriteAnimation> runRight,
  3. FutureOr<SpriteAnimation>? idleLeft,
  4. FutureOr<SpriteAnimation>? runLeft,
  5. PlatformJumpAnimations? jump,
  6. Map<String, FutureOr<SpriteAnimation>>? others,
  7. Vector2? centerAnchor,
})

Implementation

PlatformAnimations({
  required this.idleRight,
  required this.runRight,
  this.idleLeft,
  this.runLeft,
  this.jump,
  this.others,
  this.centerAnchor,
});