Overview
A pure Dart library designed to check internet connectivity by attempting to open sockets to a configurable list of addresses, each with custom ports and timeouts. It provides default settings for quick setup while allowing fine-grained control over connection tests. Ideal for apps needing reliable network status detection across multiple platforms.
Use cases
- Real-time app connectivity monitoring
- Offline mode detection
- Background network health checks
- App startup network validation
- Network-dependent feature activation
Key features
- Socket-based connectivity testing
- Configurable target addresses and ports
- Customizable timeout settings
- Cross-platform support
- Default configuration for rapid integration
Suitable for
- Apps requiring precise network status
- Developers building offline-capable applications
- Projects targeting multiple operating systems
- Network-sensitive background services
- Applications with dynamic connectivity requirements
Considerations
- Requires network permissions on mobile platforms
- May trigger false negatives on unstable networks
- Does not detect proxy or firewall interference
- Limited to socket-level checks, not full HTTP reachability
- Depends on external servers being reachable