shouldIgnore property

bool get shouldIgnore

Whether this error can be safely ignored (user-initiated cancellation or already owned).

Implementation

bool get shouldIgnore {
  if (isCancelled) return true;
  const ignorableCodes = ['already_owned', 'product_already_owned', 'pending', 'purchase_pending'];
  return ignorableCodes.contains(code);
}