globalInstance static method

OsmosSDK globalInstance()

Implementation

static OsmosSDK globalInstance() {
  if (_sdkInstance == null) {
    throw OsmosException(
      errorCode: OsmosErrorCodes.sdkNotInitialized,
      details:
          'OSMOS SDK not initialized. Please initialize OSMOS SDK using OsmosSDK.clientId("your_id").buildGlobalInstance()',
    );
  }
  return _sdkInstance!;
}