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? signatureOffset =
      _signature == null ? null : fbBuilder.writeString(_signature!);
  final int? messageOffset =
      _message == null ? null : fbBuilder.writeString(_message!);
  final int? publicKeyOffset =
      _publicKey == null ? null : fbBuilder.writeString(_publicKey!);
  fbBuilder.startTable(3);
  fbBuilder.addOffset(0, signatureOffset);
  fbBuilder.addOffset(1, messageOffset);
  fbBuilder.addOffset(2, publicKeyOffset);
  return fbBuilder.endTable();
}