globalInstance static method
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!;
}