finish method

  1. @override
int finish(
  1. Builder fbBuilder
)
override

Finish building, and store into the fbBuilder.

Implementation

@override
int finish(fb.Builder fbBuilder) {
  final int? publicKeyOffset =
      _publicKey == null ? null : fbBuilder.writeString(_publicKey!);
  final int? privateKeyOffset =
      _privateKey == null ? null : fbBuilder.writeString(_privateKey!);
  final int? passphraseOffset =
      _passphrase == null ? null : fbBuilder.writeString(_passphrase!);
  fbBuilder.startTable(3);
  fbBuilder.addOffset(0, publicKeyOffset);
  fbBuilder.addOffset(1, privateKeyOffset);
  fbBuilder.addOffset(2, passphraseOffset);
  return fbBuilder.endTable();
}