handleOnTap method

void handleOnTap(
  1. BuildContext context
)

Handles the tap event for the button.

Sends a restorePlan event to FastPlanBloc and invokes onTap callback if provided.

Implementation

void handleOnTap(BuildContext context) {
  final bloc = BlocProvider.of<FastPlanBloc>(context);
  bloc.addEvent(FastPlanBlocEvent.restorePlan(_getPremiumProductId()));
  onTap?.call();
}