Migrate to BLoC 7.2- Nested Streams - yield* inside other stream
in the new version of the bloc, you don't have to write stream functions. you have a function called emit
and calling this function and passing the new state is possible from every function in your bloc. so remove yield*
and just call _onGetCustomer
function and from there emit your new state.