finish method
Finish building, and store into the fbBuilder
.
Implementation
@override
int finish(fb.Builder fbBuilder) {
final int? timelineOffset = _timeline == null ? null
: fbBuilder.writeListFloat32(_timeline!);
final int? keyframesOffset = _keyframes?.getOrCreateOffset(fbBuilder);
fbBuilder.startTable(4);
fbBuilder.addInt32(0, _node);
fbBuilder.addOffset(1, timelineOffset);
fbBuilder.addUint8(2, _keyframesType?.value);
fbBuilder.addOffset(3, keyframesOffset);
return fbBuilder.endTable();
}