stream property

Stream<bool> stream

Get the stream associated with this instance. You can use this stream to listen to the changes in the internet connection.

This will emmit true is internet connection came live and false if internet is offline.

You must start call start or restart before using the stream.

Implementation

Stream<bool> get stream {
  if (!started) {
    throw "Call the method start() before using the stream";
  }
  return _stream;
}