emitSafe method
void
emitSafe(
- T state
Implementation
void emitSafe(T state) {
// logd('SafeEmitMixin emitting state: $state');
if (!isClosed) {
emit(state);
} else {
logw(
'Cubit was closed, could not emit state but avoided exception with SafeEmitMixin: $state');
}
}