Error while send 08 number and use de green button.
Failed assertion: line 137 pos 7: '!_isCompleted':
package:bloc/src/bloc.dart:137
2
E/flutter (14410):
E/flutter (14410): emit was called after an event handler completed normally.
E/flutter (14410): This is usually due to an unawaited future in an event handler.
E/flutter (14410): Please make sure to await all asynchronous operations with event handlers
E/flutter (14410): and use emit.isDone after asynchronous operations before calling emit() to
E/flutter (14410): ensure the event handler has not completed.
E/flutter (14410):
E/flutter (14410): BAD
E/flutter (14410): on((event, emit) {
E/flutter (14410): future.whenComplete(() => emit(...));
E/flutter (14410): });
code ...
assert(
!_isCompleted,
'''\n\n
emit was called after an event handler completed normally.
This is usually due to an unawaited future in an event handler.
Please make sure to await all asynchronous operations with event handlers
and use emit.isDone after asynchronous operations before calling emit() to
ensure the event handler has not completed.
BAD
on((event, emit) {
future.whenComplete(() => emit(...));
});