InternetConnectionOptions class

Represents options for checking internet connectivity.

Constructors

InternetConnectionOptions({required String uri, Duration timeout = const Duration(seconds: 5)})
Creates an instance of InternetConnectionOptions with the provided URI and optional timeout.
const

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 maximum duration to wait for a response from the URL before timing out.
final
uri String
The URL to be checked for internet connectivity.
final

Methods

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