finish method

  1. @override
int finish(
  1. Builder fbBuilder
)
override

Finish building, and store into the fbBuilder.

Implementation

@override
int finish(fb.Builder fbBuilder) {
  final int? jointsOffset = _joints == null ? null
      : fbBuilder.writeListInt32(_joints!);
  final int? inverseBindMatricesOffset = _inverseBindMatrices == null ? null
      : fbBuilder.writeListOfStructs(_inverseBindMatrices!);
  fbBuilder.startTable(3);
  fbBuilder.addOffset(0, jointsOffset);
  fbBuilder.addOffset(1, inverseBindMatricesOffset);
  fbBuilder.addInt32(2, _skeleton);
  return fbBuilder.endTable();
}