PingService class

Constructors

PingService({String urlTarget = 'https://www.google.com/', Duration timeout = const Duration(seconds: 3)})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeout Duration
The timeout by default is 3 seconds but could be adjusted to your ouw preference timeout when this is completed will throw the ReachServerFailException
final
urlTarget String
The urlTarget is the destination to ping as default we are going to use google.com but could be a designated url on your backend or functions in your firebase
final

Methods

getSubscription({required dynamic callBack(bool)}) StreamSubscription
Return a Subscription to the Ping Stream
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pingTick() Future<bool>
toString() String
A string representation of this object.
inherited

Operators

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