Ping constructor

Ping(
  1. String host, {
  2. int? count,
  3. double? interval,
  4. double? timeout,
  5. bool? ipv6,
  6. int? ttl,
})

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);
  }
}