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