dart_ping 9.0.1 dart_ping: ^9.0.1 copied to clipboard
Multi-platform network ping utility for native desktop and android applications.
example/dart_ping_example.dart
import 'package:dart_ping/dart_ping.dart';
void main() async {
// Create ping object with desired args
final ping = Ping('google.com', count: 5);
// [Optional]
// Preview command that will be run (helpful for debugging)
print('Running command: ${ping.command}');
// Begin ping process and listen for output
ping.stream.listen((event) {
print(event);
});
}