ConnectivityConfig class

Configuration for Connectivity.

Constructors

ConnectivityConfig({String url = 'google.nl', String? webUrl, Duration duration = const Duration(seconds: 3), dynamic handler, dynamic checker})
Create a custom configuration for Connectivity.
ConnectivityConfig.defaultConfig()
Default configuration for Connectivity.
factory

Properties

checker ConnectivityChecker
The checker for Connectivity. Default is InternetChecker.
getter/setter pair
duration Duration
The duration for Connectivity. Determines how often the connection is checked. Default is 3 seconds.
final
handler ConnectivityHandler
The handler for Connectivity. Default is DefaultFlutterHandler.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String
The url to check for internet connection. Default is 'google.nl'. Only used when checker is not set.
final
webUrl String?
Due to CORS, to make it work for a web a specific URL must be speciefied
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