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