finish method
Finish building, and store into the fbBuilder
.
Implementation
@override
int finish(fb.Builder fbBuilder) {
final int? dataOffset = _data == null ? null
: fbBuilder.writeListUint8(_data!);
fbBuilder.startTable(3);
fbBuilder.addOffset(0, dataOffset);
fbBuilder.addUint32(1, _count);
fbBuilder.addInt8(2, _type?.value);
return fbBuilder.endTable();
}