instance property

Sdk get instance

Returns the initialized SDK singleton.

Throws a StateError if init has not been called yet.

Implementation

static Sdk get instance {
  final i = _instance;
  if (i == null) {
    throw StateError('Sdk is not initialized. Call Sdk.init(...) first.');
  }
  return i;
}