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? inputOffset =
      _input == null ? null : fbBuilder.writeString(_input!);
  final int? outputOffset =
      _output == null ? null : fbBuilder.writeString(_output!);
  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(6);
  fbBuilder.addOffset(0, inputOffset);
  fbBuilder.addOffset(1, outputOffset);
  fbBuilder.addOffset(2, privateKeyOffset);
  fbBuilder.addOffset(3, passphraseOffset);
  fbBuilder.addOffset(4, optionsOffset);
  fbBuilder.addOffset(5, signedOffset);
  return fbBuilder.endTable();
}