finish method
Finish building, and store into the fbBuilder
.
Implementation
@override
int finish(fb.Builder fbBuilder) {
final int? messageOffset =
_message == null ? null : fbBuilder.writeListUint8(_message!);
final int? labelOffset =
_label == null ? null : fbBuilder.writeString(_label!);
final int? publicKeyOffset =
_publicKey == null ? null : fbBuilder.writeString(_publicKey!);
fbBuilder.startTable(4);
fbBuilder.addOffset(0, messageOffset);
fbBuilder.addOffset(1, labelOffset);
fbBuilder.addInt32(2, _hash?.value);
fbBuilder.addOffset(3, publicKeyOffset);
return fbBuilder.endTable();
}