Last updated:
0 purchases
flutter icmp ping
flutter_icmp_ping #
Flutter plugin that sends ICMP ECHO_REQUEST.
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:
copied to clipboard
Import the library in your file.
import 'package:flutter_icmp_ping/flutter_icmp_ping.dart';
copied to clipboard
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');
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.