emit method
Emits an error
.
The listeners will be notified of the error.
Implementation
void emit(PintoError error) {
_errors.add(error);
for (final listener in _listeners) {
listener.call();
}
}
Emits an error
.
The listeners will be notified of the error.
void emit(PintoError error) {
_errors.add(error);
for (final listener in _listeners) {
listener.call();
}
}