JwtBuilder.withContentId constructor

JwtBuilder.withContentId(
  1. String contentId
)

Implementation

factory JwtBuilder.withContentId(String contentId) {
  final nativeContentId = contentId.toNativeUtf8();
  try {
    final builder = DartApi.native.jwtBuilder
        .withContentId(nativeContentId)
        .extract((res) => res.asPointer<Void>());
    return JwtBuilder(builder, true);
  } finally {
    calloc.free(nativeContentId);
  }
}