pack method
Serialize the object using the given builder, returning the offset.
Implementation
@override
int pack(fb.Builder fbBuilder) {
final int? verticesOffset = vertices?.pack(fbBuilder);
final int? indicesOffset = indices?.pack(fbBuilder);
final int? materialOffset = material?.pack(fbBuilder);
fbBuilder.startTable(4);
fbBuilder.addUint8(0, verticesType?.value);
fbBuilder.addOffset(1, verticesOffset);
fbBuilder.addOffset(2, indicesOffset);
fbBuilder.addOffset(3, materialOffset);
return fbBuilder.endTable();
}