internetOnOffSimulation property

bool? internetOnOffSimulation

If you are running tests, you can override this method to simulate the internet connection as permanently on or off. Return true if there is internet, and false if there is no internet. Return null to use the real internet connection status.

Implementation

bool? get internetOnOffSimulation => forceInternetOnOffSimulation();