handleError method

void handleError(
  1. IAPError error
)

Implementation

void handleError(IAPError error) {
  // ignore: avoid_print
  print("Error caught: $error");
  purchasePending = false;
  notifyListeners();
}