dispose method

  1. @override
void dispose()
override

Cancels the subscription to purchase stream.

Implementation

@override
void dispose() {
  _purchases.clear();
  _productIds.clear();
  _subscription.cancel();
}