getAnimation method

AnimationData getAnimation(
  1. String name, {
  2. required double speed,
  3. bool loop = true,
})

Implementation

AnimationData getAnimation(
  String name, {
  required double speed,
  bool loop = true,
}) =>
    AnimationData(name: name, frames: frames[name]!, speed: speed, loop: loop);