setOnline static method Null safety

Future<void> setOnline(
  1. bool online

Shuts down or restores network activity made by the SDK.

If the SDK is set offline, LDClient.setOnline(false), it will close network connections and not make any further requests until LDClient.setOnline(true) is called.


static Future<void> setOnline(bool online) async {
  await _channel.invokeMethod('setOnline', {'online': online });