transformEvents method will be removed in bloc version 8, and we should use onEvent method instead of, how can we implement debounce for events with onEvent?
@override
Stream<Transition<PriceProposalEvent, PriceProposalState>> transformEvents(
Stream<PriceProposalEvent> events,
TransitionFunction<PriceProposalEvent, PriceProposalState> transitionFn,
) =>
super.transformEvents(
events.debounceTime(const Duration(milliseconds: 200)),
transitionFn,
);