createOrUpdateToken method

Future<SuperInviteToken> createOrUpdateToken(
  1. SuperInvitesTokenUpdateBuilder builder
)

Send or update

Implementation

Future<SuperInviteToken> createOrUpdateToken(
  SuperInvitesTokenUpdateBuilder builder,
) {
  final tmp1 = builder;
  var tmp0 = 0;
  var tmp2 = 0;
  tmp0 = _box.borrow();
  tmp2 = tmp1._box.move();
  final tmp3 = _api._superInvitesCreateOrUpdateToken(
    tmp0,
    tmp2,
  );
  final tmp5 = tmp3;
  final ffi.Pointer<ffi.Void> tmp5_0 = ffi.Pointer.fromAddress(tmp5);
  final tmp5_1 =
      _Box(_api, tmp5_0, "__SuperInvites_create_or_update_token_future_drop");
  tmp5_1._finalizer = _api._registerFinalizer(tmp5_1);
  final tmp4 =
      _nativeFuture(tmp5_1, _api.__superInvitesCreateOrUpdateTokenFuturePoll);
  return tmp4;
}