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? messageOffset =
      _message == null ? null : fbBuilder.writeListUint8(_message!);
  final int? privateKeyOffset =
      _privateKey == null ? null : fbBuilder.writeString(_privateKey!);
  final int? passphraseOffset =
      _passphrase == null ? null : fbBuilder.writeString(_passphrase!);
  final int? optionsOffset = _options?.getOrCreateOffset(fbBuilder);
  final int? signedOffset = _signed?.getOrCreateOffset(fbBuilder);
  fbBuilder.startTable(5);
  fbBuilder.addOffset(0, messageOffset);
  fbBuilder.addOffset(1, privateKeyOffset);
  fbBuilder.addOffset(2, passphraseOffset);
  fbBuilder.addOffset(3, optionsOffset);
  fbBuilder.addOffset(4, signedOffset);
  return fbBuilder.endTable();
}