finish method
Finish building, and store into the fbBuilder
.
Implementation
@override
int finish(fb.Builder fbBuilder) {
final int? privateKeyEncryptedOffset = _privateKeyEncrypted == null
? null
: fbBuilder.writeString(_privateKeyEncrypted!);
final int? passwordOffset =
_password == null ? null : fbBuilder.writeString(_password!);
fbBuilder.startTable(2);
fbBuilder.addOffset(0, privateKeyEncryptedOffset);
fbBuilder.addOffset(1, passwordOffset);
return fbBuilder.endTable();
}