dart_ping 1.0.0

  • Readme
  • Changelog
  • Example
  • Installing
  • 74

dart-ping #

This tool allows to send pings via Dart program. It uses built-in command ping and parses output of this commands. It properly handles *nix systems and Windows.

Documentation #

Future<Stream<PingInfo>> ping(String address, {int times = 4, int packetSize = 64, int interval = 1})

  • adress - address of remote host to ping. Can be domain name (google.com) or ip address (
  • times - how many ping will be sent
  • packetSize - size of packet in bytes
  • interval - interval between ping
var pings = await ping('google.pl');

pings.listen((ping) {

1.0.0 #

  • Initial version, created by Stagehand


import 'package:dart_ping/dart_ping.dart';

main() async {
  var stream = await ping("google.com", times: 5);

  print("Pinging google.com");
  stream.listen((d) {

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  dart_ping: ^1.0.0

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:dart_ping/dart_ping.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Mar 24, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6

Health suggestions

Fix lib/src/dart_ping_base.dart. (-1 points)

Analysis of lib/src/dart_ping_base.dart reported 2 hints:

line 42 col 5: DO use curly braces for all flow control structures.

line 44 col 5: DO use curly braces for all flow control structures.

Maintenance issues and suggestions

Homepage URL doesn't exist. (-20 points)

At the time of the analysis the homepage field https://github.com/l7ssha/dart-ping was unreachable.

Package is getting outdated. (-41.10 points)

The package was last published 73 weeks ago.

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0