flutter_icmp_ping 1.0.0 flutter_icmp_ping: ^1.0.0 copied to clipboard
Flutter plugin that sends ICMP ECHO_REQUEST.
flutter_icmp_ping #
Flutter plugin that sends ICMP ECHO_REQUEST.
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 GridButton.
Or use the GridButton like below.
try {
final proc = await Ping.start(
'google.com',
count: 3,
timeout: 1,
interval: 1,
ipv6: false,
);
proc.listen((event) {
print(event);
});
} catch (e) {
print('error $e');
}