FastPlanBloc constructor

FastPlanBloc({
  1. required PlanPurchasedCallback getFeaturesForPlan,
  2. List<String>? productIds,
  3. 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);
}