setSimulatedOnline static method
Overrides network connectivity state for tests and simulator harnesses.
Pass false to simulate offline mode, true to simulate network return,
or null to resume following real platform connectivity.
Implementation
static void setSimulatedOnline(bool? online) {
PlatformNetworkMonitor.setSimulatedOnline(online);
}