configBaseHostWithEnv method Null safety

void configBaseHostWithEnv(
  1. String url,
  2. SMHHostType type
)

Implementation

void configBaseHostWithEnv(String url, SMHHostType type) {
  switch (type) {
    case SMHHostType.dev:
      _devBaseUrl = url;
      break;
    case SMHHostType.test:
      _testBaseUrl = url;
      break;
    case SMHHostType.preview:
      _previewBaseUrl = url;
      break;
    case SMHHostType.release:
      _releaseBaseUrl = url;
      break;
  }
}