registerStream method
Implementation
void registerStream(Stream? stream) {
if (stream != null) {
registerDisposer(stream.listen((_) {}, cancelOnError: false).cancel);
}
}
void registerStream(Stream? stream) {
if (stream != null) {
registerDisposer(stream.listen((_) {}, cancelOnError: false).cancel);
}
}