flutter_icmp_ping 3.1.0 icon indicating copy to clipboard operation
flutter_icmp_ping: ^3.1.0 copied to clipboard

Flutter plugin that sends ICMP ECHO_REQUEST to network hosts.

flutter_icmp_ping #

Flutter plugin that sends ICMP ECHO_REQUEST.

pub package

Supported platforms #

  • Flutter Android
  • Flutter iOS

Getting Started #

To use this plugin, add flutter_icmp_ping as a dependency in your pubspec.yaml file.

dependencies:
  flutter_icmp_ping:

Import the library in your file.

import 'package:flutter_icmp_ping/flutter_icmp_ping.dart';

See the example directory for a complete sample app using Ping. Or use the Ping like below.

try {
  final ping = Ping(
    'google.com',
    count: 3,
    timeout: 1,
    interval: 1,
    ipv6: false,
    ttl: 40,
  );
  ping.stream.listen((event) {
    print(event);
  });
} catch (e) {
  print('error $e');
}
4
likes
130
pub points
83%
popularity

Publisher

verified publisher iconzuvola.com

Flutter plugin that sends ICMP ECHO_REQUEST to network hosts.

Homepage

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

async, flutter

More

Packages that depend on flutter_icmp_ping