buildButton method
Builds the purchase button if the user hasn't purchased the plan, otherwise returns an empty widget.
Implementation
Widget buildButton(
BuildContext context,
FastPlanBlocState state,
ProductDetails product,
) {
if (!state.hasPurchasedPlan) {
return _buildPurchaseButton(context, state, product);
}
return const SizedBox.shrink();
}