streamConnectionChanges method
Stream changes of the connection status to the server.
immediately Default true. If true, emits the first event immediately with
the current connection status, otherwise
it will wait to emit until the connection status changes.
Implementation
Stream<ConnectionDetails> streamConnectionChanges({bool immediately = true}) {
return getIt.get<ConnectionService>().streamConnectionChanges(immediately: immediately);
}