NetworkInterfaceMonitor class

A class that monitors network interfaces for changes

Constructors

NetworkInterfaceMonitor.new({Duration checkInterval = const Duration(seconds: 30), NetworkInterfaceProvider? interfaceProvider})
Creates a new network interface monitor

Properties

checkInterval Duration
The interval between checks for network interface changes
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addChangeCallback(NetworkInterfaceChangeCallback callback) → void
Adds a callback for network interface changes
checkForChanges() Future<bool>
Checks for network interface changes
dispose() → void
Disposes the network interface monitor
initialize() Future<void>
Initializes the network interface monitor
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeChangeCallback(NetworkInterfaceChangeCallback callback) → void
Removes a callback for network interface changes
stopPeriodicChecks() → void
Stops periodic checks for network interface changes
toString() String
A string representation of this object.
inherited

Operators

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