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