getConfig static method

Config? getConfig()

Implementation

static Config? getConfig()  {
  if (_configJson == null) {
    throw SpinachUnInitializedException("Config is not properly initialized");
  }
  if (_singleton == null) {
    _singleton = Config._internal(_configJson);
  }
  return _singleton;
}