registerStream method

void registerStream(
  1. Stream? stream
)
inherited

Implementation

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