finish method
Finish building, and store into the fbBuilder
.
Implementation
@override
int finish(fb.Builder fbBuilder) {
final int? errorOffset =
_error == null ? null : fbBuilder.writeString(_error!);
fbBuilder.startTable(3);
fbBuilder.addInt64(0, _bitLen);
fbBuilder.addInt64(1, _size);
fbBuilder.addOffset(2, errorOffset);
return fbBuilder.endTable();
}