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? passphraseOffset =
_passphrase == null ? null : fbBuilder.writeString(_passphrase!);
final int? optionsOffset = _options?.getOrCreateOffset(fbBuilder);
final int? fileHintsOffset = _fileHints?.getOrCreateOffset(fbBuilder);
fbBuilder.startTable(5);
fbBuilder.addOffset(0, inputOffset);
fbBuilder.addOffset(1, outputOffset);
fbBuilder.addOffset(2, passphraseOffset);
fbBuilder.addOffset(3, optionsOffset);
fbBuilder.addOffset(4, fileHintsOffset);
return fbBuilder.endTable();
}