dart_ping 9.0.1 copy "dart_ping: ^9.0.1" to clipboard
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);
  });
}
115
likes
160
pub points
97%
popularity

Publisher

unverified uploader

Multi-platform network ping utility for native desktop and android applications.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

async, collection

More

Packages that depend on dart_ping