getBones static method

dynamic getBones(
  1. dynamic skeleton
)

Implementation

static getBones(skeleton) {
  return skeleton is List ? skeleton : skeleton.bones;
}