instance property

NetworkMonitoring get instance

The singleton instance. Call initialize first.

Implementation

static NetworkMonitoring get instance {
  final current = _instance;
  if (current == null) {
    throw StateError(
      'NetworkMonitoring.initialize() must be called before accessing '
      'the instance.',
    );
  }
  return current;
}