VendorsBloc constructor
- required GetVendorsUseCase getVendorsUseCase,
Implementation
VendorsBloc({
required this.getVendorsUseCase,
}) : super(VendorsState()) {
on<_VendorsFetched>(
_onVendorsFetched,
transformer: BlocUtil.throttleDroppable(
const Duration(milliseconds: 100),
),
);
on<_VendorsRefreshed>(_onVendorsRefreshed);
on<_ApplyFiltersButtonPressed>(_onApplyFiltersButtonPressed);
on<_ApplySortingButtonPressed>(_onApplySortingButtonPressed);
on<_SearchFieldValueChanged>(_onSearchFieldValueChanged);
}