BoneData constructor

BoneData(
  1. int index,
  2. String name,
  3. BoneData? parent
)

Implementation

BoneData(this.index, this.name, this.parent) {
  if (index < 0 && name.isNotEmpty) {
    throw ArgumentError('index must be >= 0.');
  }
}