NetworkInformation class
A class representing the current network status of App.
This class, within NetworkPlugin
obtains the network status using Connectivity
.
Constructors
-
NetworkInformation.new({required List<
NetworkConnectivity> connectivities}) -
const
- NetworkInformation.unknown()
-
factory
Properties
-
connectivities
→ List<
NetworkConnectivity> -
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{List< NetworkConnectivity> ? connectivities}) → NetworkInformation -
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.
override