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? publicKeyOffset =
_publicKey == null ? null : fbBuilder.writeString(_publicKey!);
fbBuilder.startTable(2);
fbBuilder.addOffset(0, messageOffset);
fbBuilder.addOffset(1, publicKeyOffset);
return fbBuilder.endTable();
}