unlockFeatureSettingWidget method
Widget
unlockFeatureSettingWidget(
{ - bool value = false,
- bool enable = true,
- void onChanged(
- bool
)?,
})
Implementation
Widget unlockFeatureSettingWidget({
bool value = false,
bool enable = true,
void Function(bool)? onChanged,
}) {
final product = InAppPurchaseUtils.findProductDetails(productId());
final description = (product != null)
? '${tr('remove_ads_description')} (${product.price})'
: tr('remove_ads_description');
return MenuItemCheckBoxWidget(
theme: theme,
value: value,
enable: enable,
icon: Icons.tune,
text: tr('remove_ads'),
description: description,
onChanged: onChanged,
);
}