dart_ping
10.0.1, released 5 months ago by an unverified publisher
Multi-platform ICMP ping utility for Dart and Flutter with live statistics.
What it does
Performs ICMP network pings across Windows, macOS, Linux, Android, and iOS. Exposes live round-trip statistics and packet-loss summaries through a reactive stream.
AI-written summary of version 10.0.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to check network connectivity or host reachability in a Dart or Flutter application.
- You want live latency statistics and packet-loss summaries during network diagnostics.
Skip it when
- You only need standard HTTP health checks rather than low-level ICMP ping packets.
Strengths
- Supports all major platforms including native iOS via Swift and FFI
- Provides real-time round-trip statistics and packet-loss summaries
- Allows selecting specific network interfaces or IP versions (IPv4/IPv6)
Weaknesses
- Requires platform-specific configurations like iOS build hooks or macOS App Sandbox network entitlements
- ICMP operations may be restricted by device firewalls or OS network permissions
Setup
- Kind
- FFI (native library)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 5
iOS uses a bundled Swift ICMP engine compiled via build hooks requiring the 10.x SDK floor. macOS release builds with app sandbox require network client and server entitlements.
final ping = Ping('google.com', count: 5);
ping.stream.listen((event) {
print(event);
});Alternatives
Packages that do the same job and could replace dart_ping.
Works with
Packages commonly used together with dart_ping: ones it builds on, ones built on it, and its own family.
- asyncdart_ping depends on itUtility classes and helpers that extend Dart's async library.
- hooksdart_ping depends on itDart API for the JSON-based protocol for package build and link hooks.
- code_assetsdart_ping depends on itProvides the hook protocol specification for bundling native code with Dart packages.
- ffidart_ping depends on itUtilities for working with Foreign Function Interface (FFI) code in Dart.
- network_toolsBuilt on dart_pingDiscover open ports, devices on a subnet, and perform network scanning.
- network_tools_flutterBuilt on dart_pingExtended network tools and scanning features for Flutter supporting iOS and Android.