instance property

Nexus get instance

The app-wide instance. Throws if init hasn't run.

Implementation

static Nexus get instance {
  final i = _instance;
  if (i == null) {
    throw StateError('Nexus.init() must be called before using the SDK.');
  }
  return i;
}