ZoPingService class

Properties

hashCode int
The hash code for this object.
no setterinherited
pingStream Stream<int>
Returns a stream of ping latencies in milliseconds.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
init({List<String>? targetHosts, String? targetHost, Duration? interval, Duration? timeout, String? targetIp, int? targetPort}) → void
Initialize the ping service with custom settings. Supports complete URLs, hostnames, or IP addresses with automatic extraction and failover so firewalls or content blockers never block the ping measurement.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance ZoPingService
final

Static Methods

sanitizeHost(String input) String

Constants

defaultPingHosts → const List<String>