restore method

  1. @override
Future<EntitlementResult> restore()
override

Restores prior purchases for the current store account.

Required by app review for anything sold, and the path users take after reinstalling or switching devices. It does nothing visible in development where there's nothing to restore, which is why it's the most commonly shipped-broken flow — test it against a sandbox account that owns a purchase.

Implementation

@override
Future<EntitlementResult> restore() async {
  restoreCount++;
  return restoreResult;
}