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? privateKeyOffset =
      _privateKey == null ? null : fbBuilder.writeString(_privateKey!);
  final int? certificateOffset =
      _certificate == null ? null : fbBuilder.writeString(_certificate!);
  final int? passwordOffset =
      _password == null ? null : fbBuilder.writeString(_password!);
  fbBuilder.startTable(3);
  fbBuilder.addOffset(0, privateKeyOffset);
  fbBuilder.addOffset(1, certificateOffset);
  fbBuilder.addOffset(2, passwordOffset);
  return fbBuilder.endTable();
}