InternetConnected class

Emitted when the device has a working internet connection.

connectionType indicates the physical medium (Wi-Fi, mobile, or Ethernet). internetStatus confirms reachability via internet_connection_checker_plus.

Inheritance

Constructors

InternetConnected({required ConnectionType? connectionType, InternetStatus? internetStatus = InternetStatus.connected})

Properties

connectionType ConnectionType?
The active network interface type.
final
hashCode int
The hash code for this object.
no setterinherited
internetStatus InternetStatus?
The confirmed internet reachability status.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

copyWith({ConnectionType? connectionType, InternetStatus? internetStatus}) InternetConnected
Returns a copy of this InternetConnected state with the given fields replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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