shareLoyaltyInvitationPdf static method

dynamic shareLoyaltyInvitationPdf({
  1. required BuildContext context,
})

Implementation

static shareLoyaltyInvitationPdf({
  required BuildContext context,
}) {
  final authController = Get.find<AuthenticationController>();
  generatePdf(
    context: context,
    widget: InvitationCard(parentContext: context, isGenerating: true,),
    url: authController.referralUrl,
    refCode: authController.referralCode ?? '',
    customSize: const Size(495, 620),
  );
}