ConnectivityModule class
Native connectivity diagnostics for adapting app behavior.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
isConnected
→ Future<
bool> -
Convenience helper for quick online/offline checks.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getInfo(
) → Future< ConnectivityInfo> - Returns the current network route and connection hints.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
watch(
{Duration interval = const Duration(seconds: 2)}) → Stream< ConnectivityInfo> - Polls connectivity changes and emits only changed snapshots.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited