ConnectionBloc constructor

ConnectionBloc(
  1. ConnectionRepository connectionRepository
)

Implementation

ConnectionBloc(ConnectionRepository connectionRepository)
    : _connectionRepository = connectionRepository,
      super(Connection.online) {
  _subscription = _connectionRepository.observe().distinct().listen(emit);
}