finish method
Finish building, and store into the fbBuilder
.
Implementation
@override
int finish(fb.Builder fbBuilder) {
final int? messageOffset =
_message == null ? null : fbBuilder.writeString(_message!);
final int? passphraseOffset =
_passphrase == null ? null : fbBuilder.writeString(_passphrase!);
final int? optionsOffset = _options?.getOrCreateOffset(fbBuilder);
fbBuilder.startTable(3);
fbBuilder.addOffset(0, messageOffset);
fbBuilder.addOffset(1, passphraseOffset);
fbBuilder.addOffset(2, optionsOffset);
return fbBuilder.endTable();
}