FastPlanBloc constructor
FastPlanBloc({
- required PlanPurchasedCallback getFeaturesForPlan,
- List<
String> ? productIds, - FastPlanBlocState? initialState,
Implementation
FastPlanBloc({
required this.getFeaturesForPlan,
List<String>? productIds,
FastPlanBlocState? initialState,
}) : super(initialState: initialState ?? FastPlanBlocState()) {
final appInfo = _fastAppInfoBloc.currentState;
this.productIds = productIds ?? appInfo.productIdentifiers ?? [];
_fastStoreBlocSubscription = _fastStoreBloc.onEvent
.where(_filterStoreBlocEvents)
.listen(handleStoreEvents);
}