stub library

No-op entry point for builds that must not link the monitoring implementation.

Import package:network_monitoring/stub.dart instead of package:network_monitoring/network_monitoring.dart so the full library is absent from the import graph and can be tree-shaken from release binaries.

The host app is responsible for selecting this entry (or the full one) at compile time — for example via a flavor, env file, or build script.

Classes

DevModeOptionsView
Stub settings route — push is a no-op.
NetworkMonitorChanges
Common subscription groups used by package widgets and host apps.
NetworkMonitorController
Minimal stub controller — monitoring features are always off.
NetworkMonitoring
No-op singleton matching the full NetworkMonitoring API.
NetworkMonitoringBuilder
Stub builder — never rebuilds and renders nothing.
NetworkMonitoringConfig
Stub configuration matching the full NetworkMonitoringConfig API.
NetworkMonitorOverlayWrapper
Stub overlay wrapper — returns child unchanged.
VersionTapDetector
Stub tap detector — returns child with no unlock behavior.

Enums

NetworkMonitorChange
Specific controller state domains that UI can subscribe to independently.

Typedefs

DevModePasswordValidator = FutureOr<bool> Function(String password)
Validates user input from the dev mode password dialog.
OpenUrl = FutureOr<void> Function(String url)
Host-provided handler for opening a URL.
ShareContent = void Function(BuildContext context, String content)
Host-provided handler for sharing text from the monitoring UI.