finish method
Finish building, and store into the fbBuilder
.
Implementation
@override
int finish(fb.Builder fbBuilder) {
final int? inputOffset =
_input == null ? null : fbBuilder.writeString(_input!);
final int? outputOffset =
_output == null ? null : fbBuilder.writeString(_output!);
final int? publicKeyOffset =
_publicKey == null ? null : fbBuilder.writeString(_publicKey!);
final int? optionsOffset = _options?.getOrCreateOffset(fbBuilder);
final int? signedOffset = _signed?.getOrCreateOffset(fbBuilder);
final int? fileHintsOffset = _fileHints?.getOrCreateOffset(fbBuilder);
fbBuilder.startTable(6);
fbBuilder.addOffset(0, inputOffset);
fbBuilder.addOffset(1, outputOffset);
fbBuilder.addOffset(2, publicKeyOffset);
fbBuilder.addOffset(3, optionsOffset);
fbBuilder.addOffset(4, signedOffset);
fbBuilder.addOffset(5, fileHintsOffset);
return fbBuilder.endTable();
}