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? privateKeyOffset =
_privateKey == null ? null : fbBuilder.writeString(_privateKey!);
fbBuilder.startTable(3);
fbBuilder.addOffset(0, messageOffset);
fbBuilder.addInt32(1, _hash?.value);
fbBuilder.addOffset(2, privateKeyOffset);
return fbBuilder.endTable();
}