finish method
Finish building, and store into the fbBuilder
.
Implementation
@override
int finish(fb.Builder fbBuilder) {
final int? ciphertextOffset =
_ciphertext == null ? null : fbBuilder.writeListUint8(_ciphertext!);
final int? privateKeyOffset =
_privateKey == null ? null : fbBuilder.writeString(_privateKey!);
fbBuilder.startTable(2);
fbBuilder.addOffset(0, ciphertextOffset);
fbBuilder.addOffset(1, privateKeyOffset);
return fbBuilder.endTable();
}