pack method

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

Serialize the object using the given builder, returning the offset.

Implementation

@override
int pack(fb.Builder fbBuilder) {
  final int? verticesOffset = vertices == null ? null
      : fbBuilder.writeListUint8(vertices!);
  fbBuilder.startTable(2);
  fbBuilder.addOffset(0, verticesOffset);
  fbBuilder.addUint32(1, vertexCount);
  return fbBuilder.endTable();
}