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