ReferralBloc constructor

ReferralBloc(
  1. ReferralState initialState, {
  2. required DataRepository<ReferralModel, ReferralSearchModel> referralRepository,
})

Implementation

ReferralBloc(
  super.initialState, {
  required this.referralRepository,
}) {
  on(_handleSubmit);
  on(_handleSearch);
}