finish method
Finish building, and store into the fbBuilder
.
Implementation
@override
int finish(fb.Builder fbBuilder) {
final int? nameOffset =
_name == null ? null : fbBuilder.writeString(_name!);
final int? commentOffset =
_comment == null ? null : fbBuilder.writeString(_comment!);
final int? emailOffset =
_email == null ? null : fbBuilder.writeString(_email!);
final int? passphraseOffset =
_passphrase == null ? null : fbBuilder.writeString(_passphrase!);
final int? keyOptionsOffset = _keyOptions?.getOrCreateOffset(fbBuilder);
fbBuilder.startTable(5);
fbBuilder.addOffset(0, nameOffset);
fbBuilder.addOffset(1, commentOffset);
fbBuilder.addOffset(2, emailOffset);
fbBuilder.addOffset(3, passphraseOffset);
fbBuilder.addOffset(4, keyOptionsOffset);
return fbBuilder.endTable();
}