transformer property
The default EventTransformer used for all event handlers. By default all events are processed concurrently.
If a custom transformer is specified for a particular event handler, it will take precendence over the global transformer.
See also:
- package:bloc_concurrency for an opinionated set of event transformers.
Implementation
static EventTransformer<dynamic> transformer = (events, mapper) {
return events
.map(mapper)
.transform<dynamic>(const _FlatMapStreamTransformer<dynamic>());
};