publishUpdate method
Notifies the underlying stream of an update. Passes a reference to this object to the stream.
Implementation
Future<void> publishUpdate() async {
if (_subject.isClosed) return;
try {
preUpdatePublished();
_subject.add(this);
postUpdatePublished();
} catch (e, st) {
onError(e, st);
}
}