forceInternetOnOffSimulation property

bool? Function() forceInternetOnOffSimulation
getter/setter pair

If you have a configuration object that specifies if the internet connection should be simulated as on or off, you can replace this method to return that configuration value. For example: CheckInternet.forceInternetOnOffSimulation = () => Config.isInternetOn; Return true if there is internet, and false if there is no internet. Return null to use the real internet connection status.

Implementation

static bool? Function() forceInternetOnOffSimulation = () => null;