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