findByName static method

AnimationClip? findByName(
  1. List<AnimationClip> clipArray,
  2. dynamic name
)

Implementation

static AnimationClip? findByName(List<AnimationClip> clipArray, name) {
  for (var i = 0; i < clipArray.length; i++) {
    if (clipArray[i].name == name) {
      return clipArray[i];
    }
  }

  return null;
}