domainwebview property

String get domainwebview

Implementation

String get domainwebview {
  String domain = '';
  switch (environment) {
    case Env.development:
      if (Config.AppVersion == VersionApps.indonesia) {
        domain = _developmentDomainWebviewIndo;
      } else {
        domain = _developmentDomainWebview;
      }

      break;
    case Env.staging:
      domain = _stagingDomain;

      // if (Config.AppVersion == VersionApps.indonesia) {
      //   domain = _developmentDomainWebviewIndo;
      // } else {
      //   domain = _stagingDomain;
      // }
      break;
    case Env.production:
      if (Config.AppVersion == VersionApps.indonesia) {
        domain = _prodDomainWebviewID;
      } else {
        domain = _prodDomainWebview;
      }
      break;
    case Env.productionKube:
      if (Config.AppVersion == VersionApps.indonesia) {
        domain = _prodDomainWebviewID;
      } else {
        domain = productionDomainKube;
      }
      break;
  }
  return domain;
}