onUnlockFeaturePressed method
void
onUnlockFeaturePressed()
Implementation
void onUnlockFeaturePressed() {
final product = InAppPurchaseUtils.findProductDetails(productId());
if (product != null) {
showUnlockFeatureDialog(
context,
theme: theme,
product: product,
onPurchasePressed: () {
InAppPurchaseUtils.purchase(product.id);
},
onClosePressed: () {
Navigator.pop(context);
},
);
}
}