initialize method

  1. @override
Future<void> initialize ()
override

Implementation

@override
Future<void> initialize() async {
  cloudFunc = CloudFunctions.instance;
  addCardCallable = cloudFunc.getHttpsCallable(
    functionName: 'addCreditCard',
  );
  getCardsCallable = cloudFunc.getHttpsCallable(
    functionName: 'getCreditCards',
  );
  removeCardCallable = cloudFunc.getHttpsCallable(
    functionName: 'removeCreditCard',
  );
  addPromoCallable = cloudFunc.getHttpsCallable(
    functionName: 'addPromo',
  );
  removePromoCallable = cloudFunc.getHttpsCallable(
    functionName: 'removePromo',
  );
  deleteAccountCallable = cloudFunc.getHttpsCallable(
    functionName: 'removeUser',
  );
}