Ping constructor
Implementation
Ping(String host,
{int? count, double? interval, double? timeout, bool? ipv6, int? ttl}) {
if (defaultTargetPlatform == TargetPlatform.iOS) {
_ping = PingiOS(host, count, interval, timeout, ipv6, ttl);
}
if (defaultTargetPlatform == TargetPlatform.android) {
_ping = PingAndroid(host, count, interval, timeout, ipv6, ttl);
}
}